创建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中,每段之间空格隔开!

猜你喜欢

转载自blog.csdn.net/Qve1995/article/details/84137193