1. 问题

  IntelliJ IDEA 对@Autowired代码检查报错。

IDEA使用教程七(@Autowired 代码检查报错)

 2. 解决:修改IntelliJ IDEA 代码查检级别。

File — Settings

在Editor --> Inspections中, 修改Spring Core --> Code --> Autowiring for Bean Class

需要从Error改为Warning

IDEA使用教程七(@Autowired 代码检查报错)

相关文章:

  • 2021-04-16
  • 2022-12-23
  • 2021-08-18
  • 2021-09-12
  • 2022-12-23
  • 2022-12-23
  • 2021-10-20
猜你喜欢
  • 2021-06-24
  • 2022-12-23
  • 2022-01-08
  • 2022-01-27
  • 2022-12-23
  • 2021-04-01
相关资源
相似解决方案