@Configuration @ConditionalOnWebApplication @EnableConfigurationProperties public class RestDocsAutoConfiguration extends Object
Auto-configuration
for Spring REST Docs.Constructor and Description |
---|
RestDocsAutoConfiguration() |
Modifier and Type | Method and Description |
---|---|
org.springframework.restdocs.mockmvc.MockMvcRestDocumentationConfigurer |
restDocsMockMvcConfigurer(ObjectProvider<RestDocsMockMvcConfigurationCustomizer> configurationCustomizerProvider,
org.springframework.restdocs.RestDocumentationContextProvider contextProvider) |
RestDocsMockMvcBuilderCustomizer |
restDocumentationConfigurer(org.springframework.restdocs.mockmvc.MockMvcRestDocumentationConfigurer configurer,
ObjectProvider<org.springframework.restdocs.mockmvc.RestDocumentationResultHandler> resultHandler) |
@Bean @ConditionalOnMissingBean(value=org.springframework.restdocs.mockmvc.MockMvcRestDocumentationConfigurer.class) public org.springframework.restdocs.mockmvc.MockMvcRestDocumentationConfigurer restDocsMockMvcConfigurer(ObjectProvider<RestDocsMockMvcConfigurationCustomizer> configurationCustomizerProvider, org.springframework.restdocs.RestDocumentationContextProvider contextProvider)
@Bean @ConfigurationProperties(prefix="spring.test.restdocs") public RestDocsMockMvcBuilderCustomizer restDocumentationConfigurer(org.springframework.restdocs.mockmvc.MockMvcRestDocumentationConfigurer configurer, ObjectProvider<org.springframework.restdocs.mockmvc.RestDocumentationResultHandler> resultHandler)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.