@FeignClient contextId
时间: 2023-10-12 11:06:46 浏览: 149
@FeignClient的contextId属性用于区分不同的FeignClient实例。它的作用是在注册Feign Client Configuration时需要一个名称,名称是通过getClientName方法获取的。通过为每个FeignClient手动指定不同的contextId,可以确保每个FeignClient拥有独立的实例。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* [Spring Cloud 中的@FeignClient注解中的contextId属性](https://blog.csdn.net/y_bccl27/article/details/120034118)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
- *2* *3* [@FeignClient注解 中属性 contextId使用](https://blog.csdn.net/lazycheerup/article/details/117322269)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文