[ISSUE #942] Update configuration properties (#972)

* [spring.profiles.active:mysql] to [hippo4j.database.dialect:mysql]

* [spring.profiles.active:mysql] to [hippo4j.database.dialect:mysql]
pull/973/head
李晓双 Li Xiao Shuang 2 years ago committed by GitHub
parent 19ce95663d
commit 2cef543024
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -31,13 +31,13 @@ import org.springframework.context.annotation.Configuration;
@Configuration @Configuration
public class MybatisPlusConfig { public class MybatisPlusConfig {
@Value("${spring.profiles.active:mysql}") @Value("${hippo4j.database.dialect:mysql}")
private String profilesActive; private String databaseDialect;
@Bean @Bean
public MybatisPlusInterceptor mybatisPlusInterceptor() { public MybatisPlusInterceptor mybatisPlusInterceptor() {
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor(); MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.getDbType(profilesActive))); interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.getDbType(databaseDialect)));
return interceptor; return interceptor;
} }
} }

Loading…
Cancel
Save