Inspectopedia Help

Invalid filter definition in XML-based component scans

Reports inconsistent <filter> definitions in <component-scan> of XML application contexts.


public class NonAnnotationTypeClass {}
<beans> <ctx:component-scan base-package=""> <ctx:exclude-filter expression="" 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


Spring, 233.SNAPSHOT

Last modified: 13 July 2023