您的位置:首页 > 移动开发

IDEA 报错 Could not autowire. No beans of 'UserMapper' type found.

2018-03-29 22:40 295 查看
红线的报错内容:
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是把√去掉)

内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  iEDA 设置