@EnableWebMVC注解用来开启Web MVC的配置支持。也就是写Spring MVC时的时候会用到。 转载于:https://www.cnblogs.com/shamo89/p/7850155.html