MyBatis-Spring-Boot
MyBatis-Spring-Boot copied to clipboard
mybatis generator targetRuntime="MyBatis3"报错
报错java.lang.IllegalArgumentException: Mapped Statements collection already contains value for ...selectByExample 使用MyBatis3Simple没有问题,springboot不能使用MyBatis3吗
不是不能用。
是你用这种方式生成了 selectByExample 一类的方法,这些方法在通用 Mapper 已经提供了。