(Spring cloud configuration server) Loading a configuration other than the {application} / {profile} template

See https://github.com/shauank/spring-cloud/tree/master/spring-cloud-prop how to read the property value from email-conf.properties.

Assuming: spring.application.name = reservation and profile = default. By convention, spring cloud will load the reservation options .properties and application.properties. But I also wanted to download email-conf.properties. How to reach?

+1
source share
1 answer

See the cloud configuration document , access the endpoint /{name}/{profile}/{label}/{path} for the text file.

In your case, you can get the contents of email-conf.properties via url /reservation/default/master/email-conf.properties .

0
source

Source: https://habr.com/ru/post/1014332/


All Articles