1. 程式人生 > >web.xml 中async-supported爆紅叉叉 cvc-complex-type.2.4.a: Invalid content was found starting with element 'async-supported'.

web.xml 中async-supported爆紅叉叉 cvc-complex-type.2.4.a: Invalid content was found starting with element 'async-supported'.

class 表頭 start lex .org nco app lns pri

新建一個項目在web.xml中些東西是發現async-supported報紅叉

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

找了好多終於發現了把表頭修改一下就行了,這是一個簡單的解決方法;

<?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">這裏邊是在原來表頭基礎上加了這些東西,

http://www.springmodules.org/schema/cache/springmodules-cache.xsd http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd

web.xml 中async-supported爆紅叉叉 cvc-complex-type.2.4.a: Invalid content was found starting with element 'async-supported'.