类 MockMvcAutoConfiguration


  • @Configuration
    @ConditionalOnWebApplication
    @EnableConfigurationProperties(org.springframework.boot.autoconfigure.web.WebMvcProperties.class)
    public class MockMvcAutoConfiguration
    extends Object
    Auto-configuration for MockMvc.
    从以下版本开始:
    1.4.0
    另请参阅:
    AutoConfigureWebMvc
    • 方法详细资料

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