web.xml中servlet 标签下,<display-name>标签报错,报错内容如下:
cvc-complex-type.2.4.a: Invalid content was found starting with element 'display-name'. One of
'{"http://java.sun.com/xml/ns/j2ee":servlet-class, "http://java.sun.com/xml/ns/j2ee":jsp-file}' is
expected.
解决办法:
将“display-name”作为“servlet”标记下的第一个元素移动,验证错误消失。