@FeignClient的name
时间: 2023-10-12 16:04:10 浏览: 75
图解Feign源码-Feign是如何实现声明式调用的
@FeignClient的name属性是用来指定FeignClient的名称。在使用Feign进行服务调用时,可以通过name属性来指定要调用的微服务的名称,该名称通常用于服务发现。例如,@FeignClient(name = "testAdmin")表示要调用名为"testAdmin"的微服务。通过这种方式,Feign可以帮助调用方找到真实的服务提供方的接口路径,并进行远程调用。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [@FeignClient的name和path使用方法](https://blog.csdn.net/weixin_42188784/article/details/127094367)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [FeignClient注解及参数](https://blog.csdn.net/baidu_39322753/article/details/101014223)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT3_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文