添加Spring Cloud Config配置中心支持

This commit is contained in:
macro
2019-10-23 16:40:47 +08:00
parent a4fde176f4
commit ad78ed7910
42 changed files with 502 additions and 351 deletions

View File

@@ -0,0 +1,13 @@
spring:
cloud:
config:
profile: dev #启用环境名称
label: master #分支名称
name: demo #配置文件名称
discovery:
enabled: true
service-id: mall-config
eureka:
client:
service-url:
defaultZone: http://localhost:8001/eureka/