Inspectopedia
 
2024.3

Incorrect autowiring in Spring bean components

Error
New
Last modified: 03 December 2024

Reports autowiring problems on injection points of Spring beans @Component, @Service, and so on.

  • More than one bean of 'concrete' type

  • No beans of 'concrete' type

  • No bean with qualifier

  • Incorrect usages of @Autowired on Spring bean constructors

  • Injected or autowired fields/methods in classes that are not valid Spring beans

Example:

Example:

Example: