From 2cef5430248749a8374db8137cca4f6ac3d1e184 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E6=99=93=E5=8F=8C=20Li=20Xiao=20Shuang?= <644968328@qq.com> Date: Fri, 11 Nov 2022 11:11:38 +0800 Subject: [PATCH] [ISSUE #942] Update configuration properties (#972) * [spring.profiles.active:mysql] to [hippo4j.database.dialect:mysql] * [spring.profiles.active:mysql] to [hippo4j.database.dialect:mysql] --- .../java/cn/hippo4j/config/config/MybatisPlusConfig.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/hippo4j-server/hippo4j-config/src/main/java/cn/hippo4j/config/config/MybatisPlusConfig.java b/hippo4j-server/hippo4j-config/src/main/java/cn/hippo4j/config/config/MybatisPlusConfig.java index 6af649b8..811cf2b5 100644 --- a/hippo4j-server/hippo4j-config/src/main/java/cn/hippo4j/config/config/MybatisPlusConfig.java +++ b/hippo4j-server/hippo4j-config/src/main/java/cn/hippo4j/config/config/MybatisPlusConfig.java @@ -31,13 +31,13 @@ import org.springframework.context.annotation.Configuration; @Configuration public class MybatisPlusConfig { - @Value("${spring.profiles.active:mysql}") - private String profilesActive; + @Value("${hippo4j.database.dialect:mysql}") + private String databaseDialect; @Bean public MybatisPlusInterceptor mybatisPlusInterceptor() { MybatisPlusInterceptor interceptor = new MybatisPlusInterceptor(); - interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.getDbType(profilesActive))); + interceptor.addInnerInterceptor(new PaginationInnerInterceptor(DbType.getDbType(databaseDialect))); return interceptor; } }