spring-cloud / spring-cloud-bus

Spring Cloud event bus
http://cloud.spring.io/spring-cloud-bus/
Apache License 2.0
408 stars 242 forks source link

update profile. config client not working #230

Closed AsiaMa closed 4 years ago

AsiaMa commented 4 years ago

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?

AsiaMa commented 4 years ago

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.

spencergibb commented 4 years ago

This is the right thing to do in Greenwich and it has already been updated in Hoxton.

AsiaMa commented 4 years ago

This is the right thing to do in Greenwich and it has already been updated in Hoxton.

Thank you.