abel533 / MyBatis-Spring-Boot

Spring Boot集成MyBatis的基础项目
3.37k stars 1.59k forks source link

mybatis generator targetRuntime="MyBatis3"报错 #128

Open wangchong33333 opened 6 years ago

wangchong33333 commented 6 years ago

报错java.lang.IllegalArgumentException: Mapped Statements collection already contains value for ...selectByExample 使用MyBatis3Simple没有问题,springboot不能使用MyBatis3吗

abel533 commented 6 years ago

不是不能用。

是你用这种方式生成了 selectByExample 一类的方法,这些方法在通用 Mapper 已经提供了。