Invalid filter definition in XML-based component scans
Reports inconsistent <filter> definitions in <component-scan> of XML application contexts.
Example:
public class NonAnnotationTypeClass {}
<beans>
<ctx:component-scan base-package="com.my.company">
<ctx:exclude-filter expression="com.my.company.anno.NonAnnotationTypeClass" type="annotation"/>
</ctx:component-scan>
</beans>
In this example, NonAnnotationTypeClass
is expected to be an annotation type.
Inspection Details | |
---|---|
Available in: | IntelliJ IDEA 2023.3, Qodana for JVM 2023.3 |
Plugin: | Spring, 233.SNAPSHOT |
Last modified: 13 July 2023