美文网首页Java 后台开发
IntelliJ IDEA Could not autowire

IntelliJ IDEA Could not autowire

作者: Scorpio_cc | 来源:发表于2018-06-26 09:22 被阅读0次

    Intellij Idea开发工具在@Autowired注入XxxMapper接口时报如下错误:

    Could not autowire. No beans of ‘XxxMapper’ type found. less… (Ctrl+F1)
    Checks autowiring problems in a bean class.```
    
    解决方法如下,在 Intellij Idea中设置一下:
    
    Settings - Editor - Inspections - Spring - Spring Core - Code  
    -Autowiring for Bean Class - disable(把√去掉 )2017.1.1版本实测有效

    相关文章

      网友评论

        本文标题:IntelliJ IDEA Could not autowire

        本文链接:https://www.haomeiwen.com/subject/gwkpyftx.html