控制台报如下错误:
org.xml.sax.SAXParseException: The prefix "mvc" for element "mvc:resources" is not bound.
解决办法添加如下设置
xmlns:mvc="http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-4.2.xsd
如下如所示配置就可以了