cvc-complex-type.2.4.a: Invalid content was found starting with element 'filter-class'. One of '{"
具体问题
- 错误提示:cvc-complex-type.2.4.a: Invalid content was found starting with element ‘filter-class’. One of
‘{“http://java.sun.com/xml/ns/javaee”:description, “http://java.sun.com/xml/ns/javaee”:display-
name, “http://java.sun.com/xml/ns/javaee”:icon, “http://java.sun.com/xml/ns/javaee”:filter-
name}’ is expected. - 图片描述
问题解决方案
1.解决方法:交换 16,17 行
- 错误原因:filter配置时候,对name,class等的位置排序有具体的要求,如果写乱了,就可能出现错了。