关于IDEA中@Autowired 注解报错~图文

  • 例如鼠标放上去会报错如下:
    Could not autowire. No beans of 'StudentMapper' type found. less... (Ctrl+F1) 
    Inspection info:Checks autowiring problems in a bean class.
  •  

  • 解决方法如下:

  •  

  •  


     

  • 以后都生效设置:

  •  

posted on 2019-06-09 17:22  陶攀峰  阅读(5842)  评论(0编辑  收藏  举报

顶部 底部