添加Spring Cloud Config配置中心支持
This commit is contained in:
13
mall-admin/src/main/resources/bootstrap-prod.yml
Normal file
13
mall-admin/src/main/resources/bootstrap-prod.yml
Normal file
@@ -0,0 +1,13 @@
|
||||
spring:
|
||||
cloud:
|
||||
config:
|
||||
profile: prod #启用环境名称
|
||||
label: master #分支名称
|
||||
name: admin #配置文件名称
|
||||
discovery:
|
||||
enabled: true
|
||||
service-id: mall-config
|
||||
eureka:
|
||||
client:
|
||||
service-url:
|
||||
defaultZone: http://localhost:8001/eureka/
|
||||
Reference in New Issue
Block a user