Class MockMvcAutoConfiguration
java.lang.Object
org.springframework.boot.test.autoconfigure.web.servlet.MockMvcAutoConfiguration
@AutoConfiguration(after={WebMvcAutoConfiguration.class,WebTestClientAutoConfiguration.class})
@ConditionalOnWebApplication(type=SERVLET)
@EnableConfigurationProperties({ServerProperties.class,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
- Author:
- Phillip Webb, Andy Wilkinson, Stephane Nicoll, Brian Clozel
- See Also:
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiondispatcherServlet
(MockMvc mockMvc) dispatcherServletPath
(WebMvcProperties webMvcProperties)
-
Constructor Details
-
MockMvcAutoConfiguration
public MockMvcAutoConfiguration()
-
-
Method Details
-
dispatcherServletPath
@Bean @ConditionalOnMissingBean public DispatcherServletPath dispatcherServletPath(WebMvcProperties webMvcProperties) -
dispatcherServlet
-