Class MockMvcAutoConfiguration
java.lang.Object
org.springframework.boot.test.autoconfigure.web.servlet.MockMvcAutoConfiguration
@AutoConfiguration(after={WebMvcAutoConfiguration.class,WebTestClientAutoConfiguration.class})
@ConditionalOnWebApplication(type=SERVLET)
@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
-