Class MockMvcAutoConfiguration
java.lang.Object
org.springframework.boot.test.autoconfigure.web.servlet.MockMvcAutoConfiguration
@AutoConfiguration(after={org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.class,WebTestClientAutoConfiguration.class})
@ConditionalOnWebApplication(type=SERVLET)
@EnableConfigurationProperties({org.springframework.boot.autoconfigure.web.ServerProperties.class,org.springframework.boot.autoconfigure.web.servlet.WebMvcProperties.class})
@Import({org.springframework.boot.test.autoconfigure.web.servlet.MockMvcConfiguration.class,org.springframework.boot.test.autoconfigure.web.servlet.MockMvcTesterConfiguration.class})
public class MockMvcAutoConfiguration
extends Object
Auto-configuration for
MockMvc.- Since:
- 1.4.0
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.springframework.web.servlet.DispatcherServletdispatcherServlet(org.springframework.test.web.servlet.MockMvc mockMvc) org.springframework.boot.autoconfigure.web.servlet.DispatcherServletPathdispatcherServletPath(org.springframework.boot.autoconfigure.web.servlet.WebMvcProperties webMvcProperties)
-
Constructor Details
-
MockMvcAutoConfiguration
public MockMvcAutoConfiguration()
-
-
Method Details
-
dispatcherServletPath
@Bean @ConditionalOnMissingBean public org.springframework.boot.autoconfigure.web.servlet.DispatcherServletPath dispatcherServletPath(org.springframework.boot.autoconfigure.web.servlet.WebMvcProperties webMvcProperties) -
dispatcherServlet
@Bean @ConditionalOnMissingBean public org.springframework.web.servlet.DispatcherServlet dispatcherServlet(org.springframework.test.web.servlet.MockMvc mockMvc)
-