From 943452c28bc7cb91d1902194e0e488e2738f6f82 Mon Sep 17 00:00:00 2001 From: huangx Date: Thu, 9 Sep 2021 18:47:22 +0800 Subject: [PATCH] =?UTF-8?q?=E9=9B=86=E6=88=90profiles=E7=8E=AF=E5=A2=83?= =?UTF-8?q?=E5=8F=98=E9=87=8F=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 39 +++++++++++++++++++++++++++++- src/main/resources/application.yml | 2 +- 2 files changed, 39 insertions(+), 2 deletions(-) diff --git a/pom.xml b/pom.xml index eab44a8..07c8297 100644 --- a/pom.xml +++ b/pom.xml @@ -39,7 +39,7 @@ com.chinaweal.youfool youfool-framework-springboot - 2.0.0-SNAPSHOT + 2.1.0-SNAPSHOT @@ -61,6 +61,27 @@ + + + + dev + + dev + + + + true + + + + + prod + + prod + + + + @@ -96,5 +117,21 @@ + + + src/main/resources + + application*.yml + + + + src/main/resources + true + + application.yml + application-*${profiles.active}.yml + + + diff --git a/src/main/resources/application.yml b/src/main/resources/application.yml index 94e0bfb..f8deaa0 100644 --- a/src/main/resources/application.yml +++ b/src/main/resources/application.yml @@ -3,7 +3,7 @@ logging: root: info spring: profiles: - active: dev + active: @profiles.active@ application: name: youfool-prj-springboot-template datasource: