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 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)