@Configuration @ConditionalOnWebApplication(type=SERVLET) @AutoConfigureAfter(value=WebMvcAutoConfiguration.class) @EnableConfigurationProperties(value=WebMvcProperties.class) public class MockMvcAutoConfiguration extends Object
MockMvc
.AutoConfigureWebMvc
Modifier and Type | Method and Description |
---|---|
org.springframework.test.web.servlet.MockMvc |
mockMvc(org.springframework.test.web.servlet.MockMvcBuilder builder) |
org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder |
mockMvcBuilder(List<MockMvcBuilderCustomizer> customizers) |
SpringBootMockMvcBuilderCustomizer |
springBootMockMvcBuilderCustomizer() |
@Bean @ConditionalOnMissingBean(value=org.springframework.test.web.servlet.MockMvcBuilder.class) public org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder mockMvcBuilder(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)
Copyright © 2018 Pivotal Software, Inc.. All rights reserved.