首页>代码>基于SpringBoot+Vue实现的学生宿舍管理系统>/最代码/服务端代码/springboot/src/main/java/com/example/springboot/common/MyBatisPlusConfig.java
package com.example.springboot.common; import com.baomidou.mybatisplus.annotation.DbType; import com.baomidou.mybatisplus.extension.plugins.MybatisPlusInterceptor; import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor; import org.springframework.context.annotation.Bean; import org.springframework.context.annotation.Configuration; @Configuration public class MyBatisPlusConfig { /** * 新的分页插件,一缓和二缓遵循mybatis的规则,需要设置 MybatisConfiguration#useDeprecatedExecutor = false 避免缓存出现问题(该属性会在旧插件移除后一同移除) */ @Bean public MybatisPlusInterceptor mybatisPlusInterceptor() { MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor(); interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL)); return interceptor; } }
最近下载更多
zhanghao943 LV2
4月12日
微信网友_6927932988952576 LV12
3月30日
jc121140 LV3
3月29日
xiaozhi丶 LV14
3月24日
zolscy LV12
3月24日
wanglinddad LV54
3月3日
renyong LV3
3月1日
zhengmianwei LV3
2月22日
周青松 LV3
2月20日
taoshen95 LV14
2月18日
最近浏览更多
李俊雄 LV1
18分钟前
JQY123 LV3
5月5日
1941549176
4月29日
暂无贡献等级
slf123
4月29日
暂无贡献等级
sadselect LV8
4月19日
qianhui1 LV3
4月18日
zhangtian1997 LV10
4月15日
zhanghao943 LV2
4月12日
IT小牛 LV3
4月11日
诺一啊啊啊啊啊 LV3
4月7日