update profile. config client not working
AsiaMa opened this issue · 3 comments
When i update order.yml, config client is working(can auto refresh). While update order-dev.yml or order-test.yml, config client is not working(can't auto refresh). This is look like config-client only listening order.yml update。
spring-boot-starter : 2.1.15.RELEASE
spring-cloud : Greenwich.SR6
sample:
if i update order.yml , it is working
my config-client can recieve messge:
but if i only update order-dev.yml or order-test.yml, my config-client can't recieve message. the console nothing
it my order-dev.yml
it my order-test.yml
when i update girl.age in order-dev.yml or order-test.yml, it not working. only update order.yml, it is working(config-client can recieve message). how i solve it problem?
when i debug source code, i fount getDefaultServiceId(ConfigurableEnvironment environment) not return correct serviceId
,so i change to the following solve this problem.
https://user-images.githubusercontent.com/22593341/87228813-3b16f780-c3d6-11ea-96da-10d84675dc3a.png
I don't know if I should do it, but it does solve the problem.
This is the right thing to do in Greenwich and it has already been updated in Hoxton.
This is the right thing to do in Greenwich and it has already been updated in Hoxton.
Thank you.