spring boot 项目,app 中自动配置 bean 的时候,IDEA 显示波浪形警告信息:

1 could not autowire. No beans of ‘UserDaoMapper’ type found.
2 Inspection info: Checks autowiring problems in a bean class

是因为 IDEA 在编译期间会为我们进行代码审查可以帮助我们发现一些错误信息,还可以设置不同的错误信息级别,在错误信息级别较高的时候进行高亮显示,不高的不进行提示。解决方法为在设置中修改:

Preference -> Editor -> inspections -> spring - spring core -> code -> autowired for bean class。

相关文章:

  • 2022-12-23
  • 2021-04-28
  • 2021-08-01
  • 2021-12-31
  • 2022-12-23
  • 2022-03-06
猜你喜欢
  • 2021-04-27
  • 2021-08-24
  • 2021-09-10
  • 2021-06-09
  • 2021-11-14
  • 2022-12-23
  • 2021-04-18
相关资源
相似解决方案