@Configuration
@MapperScan("com.wl.spbt_vue.mapper")
public class MybatisPlusConfig {
@Bean
public MybatisPlusInterceptor mybatisPlusInterceptor() {
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
interceptor.addInnerInterceptor(new PaginationInnerInterceptor());
interceptor.addInnerInterceptor(new OptimisticLockerInnerInterceptor());
return interceptor;
}
MybatisPlusInterceptor爆红
解决方案:
标签:addInnerInterceptor,MybatisPlusInterceptor,plus,Mybatis,new,interceptor,selectPa From: https://www.cnblogs.com/LLW521/p/17488502.html<dependency>
<groupId>com.baomidou</groupId>
<artifactId>mybatis-plus-generator</artifactId>
<version>3.4.0</version>
</dependency>