如果使⽤的是 Idea,注解经常会报“could not autowire”Eclipse 却没有问题,其实代码是正确的,这
Idea 的误报。可以选择降低 Autowired 检测的级别,不要提示就好。
File | Settings | Editor | Inspections 选项中使⽤搜索功能找到 Autowiring for Bean Class,将 Severity
级别由之前的 error 改成 warning即可
 
Idea 注解经常会报“could not autowire”的解决办法

相关文章:

  • 2021-09-20
  • 2022-01-17
  • 2021-04-21
  • 2021-08-30
  • 2021-08-10
  • 2021-12-09
猜你喜欢
  • 2022-12-23
  • 2022-01-05
  • 2022-03-05
  • 2021-10-29
相关资源
相似解决方案