IDEA 注入 Mapper 报错

使用IDEA工具时使用@Resource和@Autowired自动注解bean时会显示红色,但是项目能运行
解决方法:
File – Settings – Inspections。在Spring Core – Autowring for Bean Class 中将Severity的级别由之前的error改成warning。

posted @ 2020-07-03 19:26  超轶绝尘  阅读(1145)  评论(0编辑  收藏  举报