maven工程中添加的web.xml文件,创建servlet的时候出现以下错误:
cvc-complex-type.2.4.a: Invalid content was found starting with element 'display-name'. One
of '{"http://java.sun.com/xml/ns/javaee":servlet-class, "http://java.sun.com/xml/ns/javaee":jsp-
file}' is expected.
解决办法是:将“http://www.springmodules.org/schema/cache/springmodules-cache.xsd http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd” 这段话加入到xml文件"xmlns:xsi="的标签中,问题就解决了。