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

相关文章:

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