TaoPanfeng's Blog

改造自己,总比禁止别人来得难。


  • 首页

  • 分类

  • 归档

  • 关于

  • 搜索

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

发表于 2019-06-09 | 分类于 ---Windows , ---IDEA , ---SpringBoot |
  • 鼠标放上去会报错如下

Could not autowire. No beans of 'StudentMapper' type found. less... (Ctrl+F1)
Inspection info:Checks autowiring problems in a bean class.
在这里插入图片描述

解决方法

在这里插入图片描述
在这里插入图片描述

以后都生效设置

在这里插入图片描述
在这里插入图片描述

那些快捷键
IDEA设置自定义代码提示模版~图文
陶攀峰

陶攀峰

451 日志
79 分类
友情链接
  • 博客园
  • CSDN
  • 读评论
© 2019 — 2023 陶攀峰
皖ICP备2022000185号-1