当前位置:   article > 正文

cvc-complex-type.2.4.a: Invalid content was found starting with element 'async-supported'.

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

出现cvc-complex-type.2.4.a: Invalid content was found starting with element 'async-supported'. One of '{"http://java.sun.com/xml/ns/javaee":init-param}' is expected. web.xml /movie/WebContent/WEB-INF line 17 XML Problem

错误,解决办法。

方法一:

解决方法很简单

 

把http://www.springmodules.org/schema/cache/springmodules-cache.xsd复制到头文件中的xmlns:xsi里就行了

 

方法二:

修改头文件为<?xml version="1.0" encoding="UTF-8"?>
<web-app version="2.5" 
xmlns="http://java.sun.com/xml/ns/javaee" 
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/javaee 
http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd">
 

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

闽ICP备14008679号