使用IDEA工具进行开发的时候,需要@Autowired自动注解bean时回报红线,但是项目依然能够运行


现有的解决的方案是:

打开file-settings或者ctrl+alt+s -> Editor

IDEA工具开发使用@Autowired注解报错解决方案

然后在Inspections 点击搜索栏 输入Spring Core

IDEA工具开发使用@Autowired注解报错解决方案

在Spring Core -> Code -> Autowring for Bean Class中将Severity的级别由之前的error改成warning。

IDEA工具开发使用@Autowired注解报错解决方案

相关文章:

  • 2022-12-23
  • 2021-05-17
  • 2021-04-18
  • 2021-05-19
  • 2021-09-27
  • 2021-10-28
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-12-23
  • 2022-01-27
  • 2022-12-23
  • 2021-11-16
  • 2021-04-07
相关资源
相似解决方案