mardi 4 septembre 2018

spring cloud config client set config url at property file

i have a spring cloud project. there are config server (config-srv), eureka server (eureka-srv) and some other service with business logic, lets call it main service (main-srv).

Im packaging them into jars and run one by one. my apps getting theirs properties from file in the same directory with jars.

so, im setting propertis to config-srv through "application-native.properties".

but if i want to change config-srv url (for example, i want http://localhost:9999) how can i share this url for all microservices before they will boot ? im trying to share this url in "application-default.properties" but its taking no effect.




Aucun commentaire:

Enregistrer un commentaire