IDEA有时候无法正确地识别 @Autowired ,并发出不应该的报错

IDEA Autowired错误

解决办法就是把这个报错级别,设置为Warning就好了
File->Settings->Editor->Inspections->Spring->Spring Core->Code->Autowiring for Bean Class-> 从Error 修改为Warning 就好了

IDEA Autowired错误

 

相关文章:

  • 2021-06-24
  • 2022-12-23
  • 2021-04-21
  • 2021-08-06
  • 2022-12-23
  • 2021-05-03
  • 2022-01-13
猜你喜欢
  • 2021-04-26
  • 2021-04-12
  • 2022-12-23
  • 2022-12-23
  • 2021-10-28
  • 2022-01-08
  • 2022-12-23
相关资源
相似解决方案