@Configuration(proxyBeanMethods=false) @ConditionalOnWebApplication(type=SERVLET) @AutoConfigureAfter(value=WebMvcAutoConfiguration.class) @EnableConfigurationProperties(value={ServerProperties.class,WebMvcProperties.class}) public class MockMvcAutoConfiguration extends ObjectSE
MockMvc の自動構成。AutoConfigureWebMvc| 修飾子と型 | メソッドと説明 |
|---|---|
org.springframework.web.servlet.DispatcherServlet | dispatcherServlet(org.springframework.test.web.servlet.MockMvc mockMvc) |
DispatcherServletPath | dispatcherServletPath() |
org.springframework.test.web.servlet.MockMvc | mockMvc(org.springframework.test.web.servlet.MockMvcBuilder builder) |
org.springframework.test.web.servlet.setup.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 org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder mockMvcBuilder(ListSE<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)
Copyright © 2019 Pivotal Software, Inc.. All rights reserved.