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

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

相关文章:

  • 2021-06-09
  • 2021-12-05
  • 2022-12-23
  • 2022-12-23
  • 2022-01-13
  • 2023-03-31
  • 2022-01-30
猜你喜欢
  • 2021-04-23
  • 2022-01-08
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2021-12-16
  • 2022-12-23
相关资源
相似解决方案