MyBatis遇到的报错:
1.Caused by: org.xml.sax.SAXParseException; lineNumber: 35; columnNumber: 17; 元素类型为 "configuration" 的内容必须匹配 "(properties?,settings?,typeAliases?,typeHandlers?,objectFactory?,objectWrapperFactory?,reflectorFactory?,plugins?,environments?,databaseIdProvider?,mappers?)"。
错误:mybatis-config.xml标签顺序弄错
2.There is no getter for property named 'uid' in 'class java.lang.Integer'
错误:查询语句#{uid}写成${uid}
3.Mapped Statements collection already contains value for XXX 错误
错误:http://www.zuidaima.com/blog/4316526703807488.htm
4报错 Type interface *** is not known to the MapperRegistry. 的解决方案
5.在数据库中两表连接如果出现重复列名,数据库一般会自动给另一个起别名但是在用mybatis时并不会,会出现很奇怪的错误。。。。。。。所以重复时一定要自己起别名。