Java Tech Workshop
Nov 10, 2026 · Backend Development
Why @EnableWebMvc Disables Spring Boot's Web MVC Auto-Configuration
This article explains how @EnableWebMvc imports WebMvcConfigurationSupport, triggering @ConditionalOnMissingBean to skip WebMvcAutoConfiguration entirely, causing loss of static resource mapping, custom message converters, content negotiation, and spring.mvc.* properties, while showing the correct pattern of implementing WebMvcConfigurer without the annotation.
@EnableWebMvcAuto-configurationConditionalOnMissingBean
0 likes · 14 min read
