当前位置:网站首页>Specify IP when calling feign interface

Specify IP when calling feign interface

2022-06-24 07:49:00 Gentleman jiejie

Normal use Feign Will set the service name , Then the service will be invoked according to a certain load balancing policy , Such as polling , Weight, etc , But how to call Feign Interface , Fixed access to an address , By configuring url Parameters can be , as follows :
 Insert picture description here

@FeignClient(name ="a", url = "http://x.x.x.x:8080")
原网站

版权声明
本文为[Gentleman jiejie]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/175/202206240351123419.html