springboot项目,引用了tk.mybatis,mapper继承了通用的extends BaseMapper,但是没有ByExample这些,不知道是哪出错了。
<groupId>tk.mybatis</groupId>
<artifactId>mapper-spring-boot-starter</artifactId>
<version>2.1.5</version>
</dependency>
<!-- https://mvnrepository.com/artifact/tk.mybatis/mapper -->
<dependency>
<groupId>tk.mybatis</groupId>
<artifactId>mapper</artifactId>
<version>4.1.5</version>
</dependency>
本来就没这方法吧,example是示例的意思,正规的命名格式不可能在basemapper里封这种方法,如果有还是早点抛弃换个框架,没点基础代码规范的人写出来的东西怎么都是没用的
可以的,不过你还需要继承ExampleMapper这个类