Idea报错Could not autowire. No beans of 'XXXXMapper' type found

红线的报错内容:

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是把√去掉)

猜你喜欢

转载自blog.csdn.net/wd521521/article/details/81195821