疯狂的狮子li
2021-01-27 a4756004f8b86277a000f3719182cd0d8f2ae3f0
ruoyi-framework/src/main/java/com/ruoyi/framework/config/MybatisPlusConfig.java
@@ -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;
@@ -47,14 +46,6 @@
   }
   /**
    * 新的分页插件,一缓和二缓遵循mybatis的规则,需要设置 MybatisConfiguration#useDeprecatedExecutor = false 避免缓存出现问题(该属性会在旧插件移除后一同移除)
    */
   @Bean
   public ConfigurationCustomizer configurationCustomizer() {
      return configuration -> configuration.setUseDeprecatedExecutor(false);
   }
   /**
    * 乐观锁插件
    * https://baomidou.com/guide/interceptor-optimistic-locker.html
    */
@@ -76,22 +67,6 @@
    */
//   public IllegalSQLInnerInterceptor illegalSQLInnerInterceptor() {
//      return new IllegalSQLInnerInterceptor();
//   }
   /**
    * Sequence主键策略 IdType.INPUT 时使用
    * 内置支持:
    *
    * DB2KeyGenerator
    * H2KeyGenerator
    * KingbaseKeyGenerator
    * OracleKeyGenerator
    * PostgreKeyGenerator
    * https://baomidou.com/guide/sequence.html
    */
//   @Bean
//   public IKeyGenerator keyGenerator() {
//      return new H2KeyGenerator();
//   }