当前位置:   article > 正文

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

cvc-complex-type.2.4.a: invalid content was found starting with element 'ext

 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即可。

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/265456
推荐阅读
相关标签
  

闽ICP备14008679号