Inspectopedia Help

Invalid @ContextConfiguration

Reports incorrect Spring context configurations.

  • Unresolved files and directories in locations attributes and corresponding aliased attributes of @ContextConfiguration meta annotations

  • Missing default application context file

For more information, see @ContextConfiguration.


@ContextConfiguration(locations = "classpath:META-INF/unknown-context.xml") // reports "Cannot resolve file 'unknown-context.xml'" class MyTests {...}

Inspection Details

Available in:

IntelliJ IDEA 2023.3, Qodana for JVM 2023.3


Spring, 233.SNAPSHOT

Last modified: 13 July 2023