org.apache.ibatis.builder.IncompleteElementException: Could not find result map com.xsd.domain.User

mybatis映射文件sql语句的返回结果集中使用resultType标签和resultMap标签的区别 resultMap:当使用resultMap做SQL语句返回结果类型处理时,通常需要在mapper.xml中定义resultMap进行pojo和相应表字段的对应。 当未定义resultMap,误把resultType写作resultMap时,会报下面的错误。 解决方法:resultType标签
相关文章
相关标签/搜索