use of com.baomidou.mybatisplus.solon.plugins.MybatisPlusInterceptor in project solon by noear.
the class Config method plusInterceptor.
@Bean
public Interceptor plusInterceptor() {
MybatisPlusInterceptor plusInterceptor = new MybatisPlusInterceptor();
plusInterceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL));
return plusInterceptor;
}
use of com.baomidou.mybatisplus.solon.plugins.MybatisPlusInterceptor in project solon-examples by noear.
the class Config method db1_interceptor.
@Bean
public void db1_interceptor(@Db("db1") org.apache.ibatis.session.Configuration cfg) {
MybatisPlusInterceptor plusInterceptor = new MybatisPlusInterceptor();
plusInterceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL));
cfg.setCacheEnabled(false);
cfg.addInterceptor(plusInterceptor);
}
Aggregations