Mybatis报错:org.apache.ibatis.builder.IncompleteElementException

org.apache.ibatis.builder.IncompleteElementException: Could not find result map java.lang.Integer
encounter this problem, usually because the basic type of the return of property in xml attribute name written resultMap.
Because Mybatis of error of positioning files sometimes are not allowed, so do not just look at file mentioned in the error message associated with it, ctrl + alt + retrieval (full text retrieval is not possible your shortcut keys) h within the whole project,
resultMap = "java.lang.Integer" (different people different coding style, and some may have spaces, self-adjusting). Finally found a line in another unrelated XXXmapper.xml file

resultMap="java.lang.Integer"

Read:

resultType="java.lang.Integer"

Guess you like

Origin www.cnblogs.com/yoyotl/p/11964476.html