🔧 Changing configuration files.synchronize spring profile in local environment and spring cloud config server environment

This commit is contained in:
lishangbu 2019-02-23 22:55:13 +08:00
parent b65302ba98
commit f341b65624
3 changed files with 9 additions and 3 deletions

View File

@ -4,12 +4,14 @@ server:
spring:
application:
name: pig-auth
profiles:
active: dev
# 配置中心
cloud:
config:
fail-fast: true
name: ${spring.application.name}
profile: dev
profile: ${spring.profiles.active}
discovery:
enabled: true
service-id: pig-config

View File

@ -4,12 +4,14 @@ server:
spring:
application:
name: pig-codegen
profiles:
active: dev
#配置中心
cloud:
config:
fail-fast: true
name: ${spring.application.name}
profile: dev
profile: ${spring.profiles.active}
discovery:
enabled: true
service-id: pig-config

View File

@ -4,12 +4,14 @@ server:
spring:
application:
name: pig-monitor
profiles:
active: dev
#配置中心
cloud:
config:
fail-fast: true
name: ${spring.application.name}
profile: dev
profile: ${spring.profiles.active}
discovery:
enabled: true
service-id: pig-config