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

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

  • 解决方法以下:

  •  

  •  

  • 之后都生效设置:

相关文章
相关标签/搜索