Spring @EnableWebMvc Spring @EnableWebMvc @Configuration表示这是Java配置类; @EnableWebMvc注解用于启动Spring MVC特性。