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">

       即可解决。

  • 相关阅读:
    Windows上DVWA和sqli-labs部署(Debian&Ubuntu)
    easy -heap
    栈迁移基础
    调试下的plt&got
    Linux 下的文件解压
    GitHub的raw.githubusercontent.com无法链接
    ELF文件认知(二)可重定位目标文件
    自动微信聊天
    MinIE: Open Information Extraction system, GROBID, tet-pdf
    MD5 don't know the problem (Solved)
  • 原文地址:https://www.cnblogs.com/jedjia/p/web-async-supported.html
Copyright © 2011-2022 走看看