spring-cloud / spring-cloud-cloudfoundry

Integration between Cloudfoundry and the Spring Cloud APIs
Apache License 2.0
80 stars 73 forks source link

ConfigClient not working with CloudFoundry's Discovery Client when configPath is set #25

Open andresoviedo opened 6 years ago

andresoviedo commented 6 years ago

I have a configserver published on custom "/config" path.

Problem

As far as I understand

Question How can I workaround this?

andresoviedo commented 6 years ago

Workaround:

Hard-code the /config path in a Spring ApplicationListener ( i.e. ContextRefreshedEvent listener with lowest priority) to reconfigure ConfigClientProperties.class appending /config prefix to the list of String[] uri