spring-cloud / spring-cloud-openfeign

Support for using OpenFeign in Spring Cloud apps
Apache License 2.0
1.22k stars 786 forks source link

Dynamically set the url of FeignClient through config #1126

Open shog808 opened 3 days ago

shog808 commented 3 days ago

Dynamically set the url of FeignClient:

as known if a service have some nodes, we can set the url of the FeignClient to call the certain node。 now i want set the url of FeignClient dynamically in the class FeignClientsRegistrar.java through the config contents of bootstrap.yml. as: appoint then, call the service message-api will through the url 192.168.2.39:1201

pivotal-cla commented 3 days ago

@shog808 Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

pivotal-cla commented 3 days ago

@shog808 Thank you for signing the Contributor License Agreement!