Inspectopedia
 
2024.3

Incorrect constructor injection in XML Spring bean

Error
New
Last modified: 03 December 2024

Reports Spring <bean> using constructor-based dependency injection.

The inspection triggers when it can't find an appropriate constructor or factory method for <bean> with the configured <constructor-arg> tags and defined autowire policy.

Example: