VALIDATION PROBLEMS WERE FOUND problem: cvc-complex-type.2.4a: Expected elements
'filter-class@http://java.sun.com/xml/ns/javaee async-supported
@http://java.sun.com/xml/ns/javaee init-param
@http://java.sun.com/xml/ns/javaee'
instead of 'description@http://java.sun.com/xml/ns/javaee' here in element
filter
@http://java.sun.com/xml/ns/javaee:<null>
原因是 把
description
filter-name
filter-class
init-param
<description>spring mvc 配置文件</description>
<param-name>contextConfigLocation</param-name>
<param-value>classpath*:*/spring-mvc.xml</param-value>
init-param
这些便签的参数位置顺序写错了。