码迷,mamicode.com
首页 > 其他好文 > 详细

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

时间:2017-07-11 19:31:20      阅读:185      评论:0      收藏:0      [点我收藏+]

标签:spring   src   解决   log   com   expected   xsd   cache   syn   

cvc-complex-type.2.4.a: Invalid content was found starting with element ‘display-name‘. One of
‘{"http://xmlns.jcp.org/xml/ns/javaee":servlet-class, "http://xmlns.jcp.org/xml/ns/javaee":jsp-
file, "http://xmlns.jcp.org/xml/ns/javaee":init-param, "http://xmlns.jcp.org/xml/ns/javaee":load-
on-startup, "http://xmlns.jcp.org/xml/ns/javaee":enabled, "http://xmlns.jcp.org/xml/ns/
javaee":async-supported, "http://xmlns.jcp.org/xml/ns/javaee":run-as, "http://xmlns.jcp.org/
xml/ns/javaee":security-role-ref, "http://xmlns.jcp.org/xml/ns/javaee":multipart-config}‘ is
expected.

技术分享

 

解决办法为:将“http://www.springmodules.org/schema/cache/springmodules-cache.xsd http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd”这段话加入到xml文件的"xmlns:xsi="的标签中

技术分享

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

标签:spring   src   解决   log   com   expected   xsd   cache   syn   

原文地址:http://www.cnblogs.com/yrxperfect/p/7151770.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!