@AutoConfiguration(after={org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.class,WebTestClientAutoConfiguration.class})
@ConditionalOnWebApplication(type=SERVLET)
@EnableConfigurationProperties(value={org.springframework.boot.autoconfigure.web.ServerProperties.class,org.springframework.boot.autoconfigure.web.servlet.WebMvcProperties.class})
public class MockMvcAutoConfiguration
extends java.lang.Object
MockMvc.AutoConfigureWebMvc| Modifier and Type | Method and Description |
|---|---|
org.springframework.web.servlet.DispatcherServlet |
dispatcherServlet(org.springframework.test.web.servlet.MockMvc mockMvc) |
org.springframework.boot.autoconfigure.web.servlet.DispatcherServletPath |
dispatcherServletPath() |
org.springframework.test.web.servlet.MockMvc |
mockMvc(org.springframework.test.web.servlet.MockMvcBuilder builder) |
org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder |
mockMvcBuilder(java.util.List<MockMvcBuilderCustomizer> customizers) |
SpringBootMockMvcBuilderCustomizer |
springBootMockMvcBuilderCustomizer() |
@Bean @ConditionalOnMissingBean public org.springframework.boot.autoconfigure.web.servlet.DispatcherServletPath dispatcherServletPath()
@Bean @ConditionalOnMissingBean(value=org.springframework.test.web.servlet.MockMvcBuilder.class) public org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder mockMvcBuilder(java.util.List<MockMvcBuilderCustomizer> customizers)
@Bean @ConfigurationProperties(prefix="spring.test.mockmvc") public SpringBootMockMvcBuilderCustomizer springBootMockMvcBuilderCustomizer()
@Bean @ConditionalOnMissingBean public org.springframework.test.web.servlet.MockMvc mockMvc(org.springframework.test.web.servlet.MockMvcBuilder builder)
@Bean @ConditionalOnMissingBean public org.springframework.web.servlet.DispatcherServlet dispatcherServlet(org.springframework.test.web.servlet.MockMvc mockMvc)