config client config server end on end can be even, but not read the configuration file, resulting in an error when the client-side read, will not start
Paste the following profiles
server clearly yml
spring:
application:
name: config-server
cloud:
config:
server:
git:
uri: https://gitee.com/xxx/study-clouds-config
username: xx
password: xx
eureka:
client:
service-url:
defalutZone: http://localhost:8761
client to bootsrap.yml file needs to be configured, when the leading context, having a higher priority on Bootstrap
spring:
application:
name: client
cloud:
config:
uri: http://localhost:8077
profile: test
eureka:
client:
service-url:
defalutZone: http://localhost:8761
instance:
prefer-ip-address: true #将ip注册到eureka实例
git config file name must be the same on the client-side file prefix
In order to have access to the right information