idea中Mapper接口通过@Autowired注入,报错

Mapper接口通过@Autowired注入,在编辑情况下,无法找不到对应的bean,于是提示找不到对应bean的错误。


但实际上项目是正常运行的。

可在File -- Settings -- Inspections。在Spring Core -- Autowring for Bean Class 中,

将Severity的级别由之前的error改成warning。

posted on 2020-02-08 14:44  下周去洗车  阅读(1449)  评论(0)    收藏  举报

导航