RestTemplate could not autowire. No beans of 'RestTemplate' type found.
时间: 2023-09-26 15:10:55 浏览: 182
Idea 解决 Could not autowire. No beans of 'xxxx' type found 的错误提示
5星 · 资源好评率100%
出现"RestTemplate could not autowire. No beans of 'RestTemplate' type found."的错误是因为RestTemplate没有被正确定义和实例化。在错误提示中,建议在配置中定义一个'org.springframework.web.client.RestTemplate'类型的bean。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [Could not autowire. No beans of “RestTemplate”type found.Inspection info:Checks](https://blog.csdn.net/GavinLi2588/article/details/106505364)[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_1"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]
阅读全文