spring:
application:
name: eureka-server
server:
port: 11001
eureka:
instance:
hostname: localhost
client:
registerWithEureka: false
fetchRegistry: false
serviceUrl:
defaultZone: http://${eureka.instance.hostname}:${server.port}/eureka/
eureka:
instance:
hostname: localhost
client:
serviceUrl:
eureka-server-port: 11001
spring:
application:
name: eureka-client
server:
port: 12001
eureka:
client:
serviceUrl:
defaultZone: http://${eureka.instance.hostname}:${eureka.client.serviceUrl.eureka-server-port}/eureka/
eureka:
instance:
hostname: localhost
client:
serviceUrl:
eureka-server-port: 11001
spring:
application:
name: eureka-consumer
server:
port: 13001
eureka:
client:
serviceUrl:
defaultZone: http://${eureka.instance.hostname}:${eureka.client.serviceUrl.eureka-server-port}/eureka/
spring:
application:
name: config-server
cloud:
config:
server:
git:
uri: git@github.com:SpringCloudify/config-repo-demo.git
server:
port:
application.yaml
spring:
application:
name: config-client
server:
port: 13001
bootstrap.yaml
spring:
cloud:
config:
name: config-client
uri: http://localhost:12001/
profile: defualt
label: master
spring.application.name
:对应配置 文 件 规则中 的 {application}
部分 spring.cloud.config.profile
:对应配置 文 件 规则中 的 {profile}
部分 spring.cloud.config.label
:对应配置 文 件 规则中 的 {label}
部分 spring.cloud.config.uri
:配置 中心 config-server
的 地 址