红线的报错内容:
Could not autowire. No beans of ‘RestTemplate’ type found. more… (Ctrl+F1)
如图:
解决方法:在 Intellij Idea中设置一下:
Settings - Editor - Inspections - Spring - Spring Core - Code - Autowiring for Bean Class - disable(idea2017是把√去掉)
红线的报错内容:
Could not autowire. No beans of ‘RestTemplate’ type found. more… (Ctrl+F1)
如图:
解决方法:在 Intellij Idea中设置一下:
Settings - Editor - Inspections - Spring - Spring Core - Code - Autowiring for Bean Class - disable(idea2017是把√去掉)
相关文章: