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: [email protected]: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的地址