Class MockMvcAutoConfiguration
java.lang.Object
org.springframework.boot.test.autoconfigure.web.servlet.MockMvcAutoConfiguration
@Configuration(proxyBeanMethods=false)
@ConditionalOnWebApplication(type=SERVLET)
@AutoConfigureAfter({WebMvcAutoConfiguration.class,WebTestClientAutoConfiguration.class})
@EnableConfigurationProperties({ServerProperties.class,WebMvcProperties.class})
public class MockMvcAutoConfiguration
extends Object
Auto-configuration for
MockMvc
.- Since:
- 1.4.0
- Author:
- Phillip Webb, Andy Wilkinson, Stephane Nicoll, Brian Clozel
- See Also:
-
Method Summary
Modifier and TypeMethodDescriptiondispatcherServlet
(MockMvc mockMvc) mockMvc
(MockMvcBuilder builder) mockMvcBuilder
(List<MockMvcBuilderCustomizer> customizers)
-
Method Details
-
dispatcherServletPath
-
mockMvcBuilder
@Bean @ConditionalOnMissingBean(org.springframework.test.web.servlet.MockMvcBuilder.class) public DefaultMockMvcBuilder mockMvcBuilder(List<MockMvcBuilderCustomizer> customizers) -
springBootMockMvcBuilderCustomizer
@Bean @ConfigurationProperties(prefix="spring.test.mockmvc") public SpringBootMockMvcBuilderCustomizer springBootMockMvcBuilderCustomizer() -
mockMvc
-
dispatcherServlet
-