Skip to content

Commit 2cef543

Browse files
[ISSUE #942] Update configuration properties (#972)
* [spring.profiles.active:mysql] to [hippo4j.database.dialect:mysql] * [spring.profiles.active:mysql] to [hippo4j.database.dialect:mysql]
1 parent 19ce956 commit 2cef543

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hippo4j-server/hippo4j-config/src/main/java/cn/hippo4j/config/config/MybatisPlusConfig.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -31,13 +31,13 @@
3131
@Configuration
3232
public class MybatisPlusConfig {
3333

34-
@Value("${spring.profiles.active:mysql}")
35-
private String profilesActive;
34+
@Value("${hippo4j.database.dialect:mysql}")
35+
private String databaseDialect;
3636

3737
@Bean
3838
public MybatisPlusInterceptor mybatisPlusInterceptor() {
3939
MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor();
40-
interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.getDbType(profilesActive)));
40+
interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.getDbType(databaseDialect)));
4141
return interceptor;
4242
}
4343
}

0 commit comments

Comments
 (0)