Class MockMvcAutoConfiguration


  • @Configuration
    @ConditionalOnWebApplication(type=SERVLET)
    @AutoConfigureAfter(org.springframework.boot.autoconfigure.web.servlet.WebMvcAutoConfiguration.class)
    @EnableConfigurationProperties({org.springframework.boot.autoconfigure.web.ServerProperties.class,org.springframework.boot.autoconfigure.web.servlet.WebMvcProperties.class})
    public class MockMvcAutoConfiguration
    extends Object
    Auto-configuration for MockMvc.
    Since:
    1.4.0
    See Also:
    AutoConfigureWebMvc
    • Method Detail

      • dispatcherServletPath

        @Bean
        @ConditionalOnMissingBean
        public org.springframework.boot.autoconfigure.web.servlet.DispatcherServletPath dispatcherServletPath()
      • mockMvcBuilder

        @Bean
        @ConditionalOnMissingBean(org.springframework.test.web.servlet.MockMvcBuilder.class)
        public org.springframework.test.web.servlet.setup.DefaultMockMvcBuilder mockMvcBuilder​(List<MockMvcBuilderCustomizer> customizers)
      • mockMvc

        @Bean
        @ConditionalOnMissingBean
        public org.springframework.test.web.servlet.MockMvc mockMvc​(org.springframework.test.web.servlet.MockMvcBuilder builder)
      • dispatcherServlet

        @Bean
        @ConditionalOnMissingBean
        public org.springframework.web.servlet.DispatcherServlet dispatcherServlet​(org.springframework.test.web.servlet.MockMvc mockMvc)