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; } }