异常:cvc-complex-type.2.4.a: Invalid content was found starting with element

web.xml 出现cvc-complex-type.2.4.a: Invalid content was found starting with element

<web-app xmlns="http://java.sun.com/xml/ns/j2ee" version="2.4"
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance  http://www.springmodules.org/schema/cache/springmodules-cache.xsd http://www.springmodules.org/schema/cache/springmodules-      ehcache.xsd"
    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">

</web-app>

将红色标记加入XML即可。

 

你可能感兴趣的:(element)