@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.
RestDocsAutoConfiguration
,
RestDocsMockMvcConfigurationCustomizer
,
RestDocsWebTestClientConfigurationCustomizer
,
RestDocsRestAssuredConfigurationCustomizer
Modifier and Type | Optional Element and Description |
---|---|
String |
outputDir
The output directory to which generated snippets will be written.
|
String |
uriHost
The host to be used in documented URIs.
|
int |
uriPort
The port to be used in documented URIs.
|
String |
uriScheme
The scheme (typically
http or https ) to be used in documented URIs. |
String |
value
The output directory to which generated snippets will be written.
|
@AliasFor(value="outputDir") public abstract String value
outputDir()
.public abstract String uriScheme
http
or https
) to be used in documented URIs.
Defaults to http
.public abstract String uriHost
localhost
.