@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Inherited public @interface WebAppConfiguration
@WebAppConfigurationis a class-level annotation that is used to declare that the
ApplicationContextloaded for an integration test should be a
The presence of
@WebAppConfiguration on a test class indicates that
WebApplicationContext should be loaded for the test using a default
for the path to the root of the web application. To override the default,
specify an explicit resource path via the
@WebAppConfiguration must be used in conjunction with
either within a single test class or within a test class hierarchy.
This annotation may be used as a meta-annotation to create custom composed annotations.
public abstract String value
A path that does not include a Spring resource prefix (e.g.,
file:, etc.) will be interpreted as a file system resource, and a
path should not end with a slash.
"src/main/webapp" as a file system resource. Note
that this is the standard directory for the root of a web application in
a project that follows the standard Maven project layout for a WAR.