Invalid content was found starting with element 'async-supported

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總是報cvc-complex-type.2.4.a: Invalid content was found starting with element 'async-supported'. 錯誤,還出現小紅叉,在網上找了很多,有說是把報紅叉的代碼寫在<jsp-config></jsp-config>之間,試了之後發現完全沒用。 後來在外文網站上找到了一個方法就把問題解決了。所以記錄下來,以後再次遇到了就方便解決了。

 解決辦法爲:將“http://www.springmodules.org/schema/cache/springmodules-cache.xsd http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd” 這段話加入到xml文件"xmlns:xsi="的標籤中,問題就解決了。


雖然原作者不讓轉載,但是我可以複製啊!遇到了同樣的問題,也解決了!

發佈了53 篇原創文章 · 獲贊 5 · 訪問量 5萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章