|
@@ -14,7 +14,7 @@ import java.sql.Driver;
|
|
|
@Configuration
|
|
|
public class MybatisPlusConfig {
|
|
|
@Bean
|
|
|
- @ConditionalOnClass(Driver.class)
|
|
|
+// @ConditionalOnClass(Driver.class)
|
|
|
public MybatisPlusInterceptor mybatisPlusInterceptor() {
|
|
|
|
|
|
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
|
|
@@ -22,14 +22,14 @@ public class MybatisPlusConfig {
|
|
|
interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.MYSQL));
|
|
|
return interceptor;
|
|
|
}
|
|
|
- @Bean
|
|
|
- @ConditionalOnClass(org.postgresql.Driver.class)
|
|
|
- public MybatisPlusInterceptor plusInterceptor() {
|
|
|
- MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
|
|
|
- interceptor.addInnerInterceptor(new ProjectInterceptor());
|
|
|
- interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.POSTGRE_SQL));
|
|
|
- return interceptor;
|
|
|
- }
|
|
|
+// @Bean
|
|
|
+// @ConditionalOnClass(org.postgresql.Driver.class)
|
|
|
+// public MybatisPlusInterceptor plusInterceptor() {
|
|
|
+// MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
|
|
|
+// interceptor.addInnerInterceptor(new ProjectInterceptor());
|
|
|
+// interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.POSTGRE_SQL));
|
|
|
+// return interceptor;
|
|
|
+// }
|
|
|
|
|
|
@Bean
|
|
|
public ConfigurationCustomizer configurationCustomizer() {
|