1. 程式人生 > >建立java web後,web.xml中報錯

建立java web後,web.xml中報錯

報錯:cvc-complex-type.2.4.a: Invalid content was found starting with element 

解決方法1:xmlns:xsi="空格http://www.w3.org/2001/XMLSchema-instance"     在xsi=“後邊加一個空格! 我也不知道為什麼這麼做就能解決錯誤!

解決方法2:

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

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

將這段複製到xsi中,每段之間空格隔開!