@Target(value=TYPE) @Retention(value=RUNTIME) @Documented @Inherited @ImportAutoConfiguration @Import(value=org.springframework.boot.test.autoconfigure.restdocs.RestDocumentationContextProviderRegistrar.class) @PropertyMapping(value="spring.test.restdocs") public @interface AutoConfigureRestDocs
MockMvc-based testing of a servlet web application, WebTestClient-based
testing of a reactive web application, or RestAssured-based testing of any web
application over HTTP.
Allows configuration of the output directory and the host, scheme, and port of
generated URIs. When further configuration is required a
RestDocsMockMvcConfigurationCustomizer,
RestDocsWebTestClientConfigurationCustomizer, or
RestDocsRestAssuredConfigurationCustomizer bean can be used.
| Modifier and Type | Optional Element and Description |
|---|---|
java.lang.String |
outputDir
The output directory to which generated snippets will be written.
|
java.lang.String |
uriHost
The host to be used in documented URIs.
|
int |
uriPort
The port to be used in documented URIs.
|
java.lang.String |
uriScheme
The scheme (typically
http or https) to be used in documented URIs. |
java.lang.String |
value
The output directory to which generated snippets will be written.
|
@AliasFor(value="outputDir") public abstract java.lang.String value
outputDir().@AliasFor(value="value") public abstract java.lang.String outputDir
value().public abstract java.lang.String uriScheme
http or https) to be used in documented URIs.
Defaults to http.