使用IDEA工具时使用@Resource和@Autowired自动注解bean时会显示红色,但是项目能运行
解决方法:
File – Settings – Inspections。在Spring Core – Autowring for Bean Class 中将Severity的级别由之前的error改成warning。
idea中使用@Autowired引入报红

idea中使用@Autowired引入报红

相关文章:

  • 2021-05-16
  • 2021-11-20
  • 2022-01-05
  • 2022-01-08
  • 2022-12-23
猜你喜欢
  • 2021-05-19
  • 2021-12-16
  • 2021-03-29
  • 2021-11-29
  • 2022-12-23
  • 2022-12-23
  • 2021-09-12
相关资源
相似解决方案