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

在idea中,Mapper接口通过@Autowired注入,在编辑情况下,无法找不到对应的bean,于是提示找不到对应bean的错误。
但实际上项目是正常运行的。

可在File – Settings – Inspections。在Spring Core – Autowring for Bean Class 中,
将Severity的级别由之前的error改成warning。
idea中Mapper接口通过@Autowired注入,报错