From 4924dc17447524855729aab8f7bdd9fd23b2f843 Mon Sep 17 00:00:00 2001 From: shanjianq <49084314+shanjianq@users.noreply.github.com> Date: Wed, 7 Sep 2022 11:42:53 +0800 Subject: [PATCH] assign profilesActive default value in MybatisPlusConfig (#675) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * assign profilesActive default value in MybatisPlusConfig * assign profilesActive default value in MybatisPlusConfig Co-authored-by: 李金来 <41976977+pirme@users.noreply.github.com> --- .../main/java/cn/hippo4j/config/config/MybatisPlusConfig.java | 1 + 1 file changed, 1 insertion(+) diff --git a/hippo4j-config/src/main/java/cn/hippo4j/config/config/MybatisPlusConfig.java b/hippo4j-config/src/main/java/cn/hippo4j/config/config/MybatisPlusConfig.java index d762c2bb..6af649b8 100644 --- a/hippo4j-config/src/main/java/cn/hippo4j/config/config/MybatisPlusConfig.java +++ b/hippo4j-config/src/main/java/cn/hippo4j/config/config/MybatisPlusConfig.java @@ -30,6 +30,7 @@ import org.springframework.context.annotation.Configuration; */ @Configuration public class MybatisPlusConfig { + @Value("${spring.profiles.active:mysql}") private String profilesActive;