Inspectopedia Help

Incorrect injected bean type

Reports incorrect types of custom schema bean injections defined in the XML application context.

Example:

public class SimpleBean{}
<beans ...> <bean class="SimpleBean" id="simpleBean"/> <mvc:annotation-driven conversion-service="simpleBean" <!-- reports "Bean must be of 'org.springframework.core.convert.ConversionService' type" --> message-codes-resolver="simpleBean" <!-- reports 'Bean must be of org.springframework.validation.MessageCodesResolver' type" --> validator="simpleBean" <!-- reports "Bean must be of 'org.springframework.validation.Validator' type" --> /> </beans>

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3

Plugin:

Spring, 233.SNAPSHOT

Last modified: 13 July 2023