关于IDEA中@Autowired 注解报错

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

  • 以后都生效设置:

猜你喜欢

转载自www.cnblogs.com/taopanfeng/p/10994075.html
今日推荐