spring boot集成tk.mybatis3.4.0通用mapper, java.lang.ClassCastException,实体不能转换为实体
项目使用spring boot1.5.2 集成mybatis通用mapper插件,发现查询方法selectByPrimaryKey
会导致发生异常—— java.lang.ClassCastException:com.xxx.xxx.entity cannot be cast to com.xxx.xxx.entity
测试过:insert、update、delete方法都没有问题,就是查询出
原创
2017-04-18 18:34:45 ·
14483 阅读 ·
6 评论