zoukankan      html  css  js  c++  java
  • web.xml配置文件中<async-supported>true</async-supported>报错的解决方案

       在配置web.xml的时候总是报cvc-complex-type.2.4.a: Invalid content was found starting with element 错误,还出现小红叉。 
       可以尝试以下两种解决方式:

       解决方法一:
              在eclipse中配置xml
             1、 http://www.springmodules.org/schema/cache/springmodules-cache.xsd
             2、http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd 
               然后再将这两个xsd加入到web.xml中就搞定了 ,如下面代码:

        

       

          解决方法二:

            <async-supported>true</async-supported>是web.xml 3.0的新特性,只需将

           <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://Java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_2_5.xsd" id="WebApp_ID" version="2.5">

         改成:

             <web-app xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://java.sun.com/xml/ns/javaee" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-app_3_0.xsd" id="WebApp_ID" version="3.0">

       即可解决。

  • 相关阅读:
    golang gc
    set password to qcow2
    golang reflect struct
    Mac 自启动管理
    shell exec
    shell 管道 与 mkfifo
    shell 读取文件
    shell 函数
    shell read 命令
    ubuntu 快速安装和设置 mysql
  • 原文地址:https://www.cnblogs.com/jedjia/p/web-async-supported.html
Copyright © 2011-2022 走看看