spring-cloud/spring-cloud-bus

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
image
image
my config-client can recieve messge:
image
but if i only update order-dev.yml or order-test.yml, my config-client can't recieve message. the console nothing
image
it my order-dev.yml
image
it my order-test.yml
image
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.