|
|
|
@ -1,7 +1,6 @@
|
|
|
|
|
package com.ruoyi.framework.config;
|
|
|
|
|
|
|
|
|
|
import com.baomidou.mybatisplus.annotation.DbType;
|
|
|
|
|
import com.baomidou.mybatisplus.autoconfigure.ConfigurationCustomizer;
|
|
|
|
|
import com.baomidou.mybatisplus.core.handlers.MetaObjectHandler;
|
|
|
|
|
import com.baomidou.mybatisplus.core.incrementer.IKeyGenerator;
|
|
|
|
|
import com.baomidou.mybatisplus.core.incrementer.IdentifierGenerator;
|
|
|
|
@ -46,14 +45,6 @@ public class MybatisPlusConfig {
|
|
|
|
|
return paginationInnerInterceptor;
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 新的分页插件,一缓和二缓遵循mybatis的规则,需要设置 MybatisConfiguration#useDeprecatedExecutor = false 避免缓存出现问题(该属性会在旧插件移除后一同移除)
|
|
|
|
|
*/
|
|
|
|
|
@Bean
|
|
|
|
|
public ConfigurationCustomizer configurationCustomizer() {
|
|
|
|
|
return configuration -> configuration.setUseDeprecatedExecutor(false);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
/**
|
|
|
|
|
* 乐观锁插件
|
|
|
|
|
* https://baomidou.com/guide/interceptor-optimistic-locker.html
|
|
|
|
|