1.在使用IDEA时,务必记得将需要的output CLASS文件加入对应Artifact的lib中,否则会经常出现ClassDefNotFoundException
2.java.lang.IllegalArgumentException: More than one fragment with the name [spring_web] was found
当lib中出现多个springframework包时会出现这个异常
3.consumer端接收到的所有对象为null
sqlmapconfig中禁用lazy loading
4.java.lang.NullPointerException mybatis返回列表等集合,size正确,但对象全部为null
1.确认pojo类字段与数据库表字段一致
2.使用ResultMap,而不是ResultType
网友评论