🔧 Changing configuration files.修改actived根据指定的maven profiles动态切换

This commit is contained in:
lishangbu 2020-04-04 13:55:34 +08:00
parent af262c7ad5
commit d99d43172d
3 changed files with 3 additions and 3 deletions

View File

@ -14,5 +14,5 @@ spring:
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
profiles:
active: dev
active: @profiles.active@

View File

@ -14,6 +14,6 @@ spring:
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
profiles:
active: dev
active: @profiles.active@

View File

@ -14,4 +14,4 @@ spring:
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}
profiles:
active: dev
active: @profiles.active@