@FeignClient(url =) 占位符
时间: 2023-10-12 17:06:36 浏览: 245
在使用@FeignClient注解时,可以通过url属性使用占位符来动态配置。比如可以将url属性的值设置为"${feign.url}",然后在配置文件中通过feign.url来配置具体的URL地址。这样可以使得测试环境和线上环境的域名可以灵活地进行配置。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [FeignClient 支持占位符及其原理](https://blog.csdn.net/qq_20919883/article/details/121911039)[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%"]
- *3* [Spring Cloud Open Feign系列【14】@FeignClient注解源码分析](https://blog.csdn.net/qq_43437874/article/details/122259994)[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 ]
阅读全文