红线的报错内容:
Could not autowire. No beans of 'RestTemplate' type found. less... (Ctrl+F1) Checks autowiring prob
如图:

解决方法:在 Intellij Idea中设置一下:
Settings - Editor - Inspections - Spring - Spring Core - Code - Autowiring for Bean Class - disable(idea2017是把√去掉)

4243

被折叠的 条评论
为什么被折叠?



