@AutoConfiguration(after={WebMvcAutoConfiguration.class,WebTestClientAutoConfiguration.class}) @ConditionalOnWebApplication(type=SERVLET) @EnableConfigurationProperties(value={ServerProperties.class,WebMvcProperties.class}) public class MockMvcAutoConfiguration extends ObjectSE
MockMvc
の自動構成。AutoConfigureWebMvc
修飾子と型 | メソッドと説明 |
---|---|
DispatcherServlet | dispatcherServlet(MockMvc mockMvc) |
DispatcherServletPath | dispatcherServletPath() |
MockMvc | mockMvc(MockMvcBuilder builder) |
DefaultMockMvcBuilder | mockMvcBuilder(ListSE<MockMvcBuilderCustomizer> customizers) |
SpringBootMockMvcBuilderCustomizer | springBootMockMvcBuilderCustomizer() |
cloneSE, equalsSE, finalizeSE, getClassSE, hashCodeSE, notifySE, notifyAllSE, toStringSE, waitSE, waitSE, waitSE
@Bean @ConditionalOnMissingBean public DispatcherServletPath dispatcherServletPath()
@Bean @ConditionalOnMissingBean(value=org.springframework.test.web.servlet.MockMvcBuilder.class) public DefaultMockMvcBuilder mockMvcBuilder(ListSE<MockMvcBuilderCustomizer> customizers)
@Bean @ConfigurationProperties(prefix="spring.test.mockmvc") public SpringBootMockMvcBuilderCustomizer springBootMockMvcBuilderCustomizer()
@Bean @ConditionalOnMissingBean public MockMvc mockMvc(MockMvcBuilder builder)
@Bean @ConditionalOnMissingBean public DispatcherServlet dispatcherServlet(MockMvc mockMvc)