> For the complete documentation index, see [llms.txt](https://jack80342.gitbook.io/spring-boot/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://jack80342.gitbook.io/spring-boot/ix.-how-to-guides/76.-spring-mvc/76.7-switch-off-the-default-mvc-configuration.md).

# 76.7 关闭默认的MVC配置

完全控制MVC配置的最简单方式是提供你自己的被`@EnableWebMvc`注解的`@Configuration`，这样所有的MVC配置都逃不出你的掌心。
