解决cvc-complex-type.2.4.a: Invalid content was found starting with element

今天用myeclipse导入 一个项目出现后出现cvc-complex-type.2.4.a: Invalid content was found starting with element 'inf...的错误。

后来在网上找了很多,有说是把报红叉的代码写在<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="的标签中。

 注意,是"xmlns:xsi="标签中。

posted @ 2018-01-23 18:29  Ashin5800  阅读(1051)  评论(0编辑  收藏  举报