关于IDEA中@Autowired 注解报错~图文
- 例如鼠标放上去会报错如下:
Could not autowire. No beans of 'StudentMapper' type found. less... (Ctrl+F1) Inspection info:Checks autowiring problems in a bean class.
-
-
解决方法如下:
-
-
-
以后都生效设置:
-
Could not autowire. No beans of 'StudentMapper' type found. less... (Ctrl+F1) Inspection info:Checks autowiring problems in a bean class.