mybatis 启动报错
org.xml.sax.SAXParseException;
lineNumber: 138; columnNumber: 15;
The content of element type "resultMap"
must match "(constructor?,id*,result*,association*,collection*,discriminator?)
mybatis启动时候报错,此情况有多种原因
1.仔细检查resultMap是否配置的不正确,多了或少了字符等
2.(此情况一般不易察觉,可能是mybatis的BUG) 在配置resultMap的时候,针对一个resultMap中同时有<association>和<collection>标签的时候,<association>的标签需要放在<collection>前面
特此记录
相关推荐
xiuyangsong 2020-11-16
Nishinoshou 2020-11-09
jimgreatly 2020-09-01
dongxurr 2020-08-18
Dullonjiang 2020-08-15
Dullonjiang 2020-08-11
Dullonjiang 2020-08-09
dongxurr 2020-08-08
yunzhonmghe 2020-08-07
jimgreatly 2020-08-03
Dullonjiang 2020-07-30
jimgreatly 2020-07-27
liqiancao 2020-07-26
xiuyangsong 2020-07-26
dongxurr 2020-07-26
mcvsyy 2020-07-26
helloxusir 2020-07-25
牧场SZShepherd 2020-07-20