关于解决“cvc-complex-type.2.4.a: Invalid content was found starting with element ‘XXX‘.”的问题

编程知识 更新时间:2023-04-05 06:08:37

今天在xml文件进行将切面类对象植入目标对象的组装过程中,<property/>标签报出“cvc-complex-type.2.4.a: Invalid content was found starting with element 'property'. One of '{"http://www.springframework/schema/beans":import, "http://
 www.springframework/schema/beans":alias, "http://www.springframework/
 schema/beans":bean, WC[##other:"http://www.springframework/schema/beans"], 
 "http://www.springframework/schema/beans":beans}' is expected.”的错误。

经过不懈努力,终于在网上找出如下方法可以解决“cvc-complex-type.2.4.a: Invalid content was found starting with element 'XXX'.”的问题,亲测有用,先将方法总结记录一下。

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

方法二: 在 " 前加一个空格

更多推荐

关于解决“cvc-complex-type.2.4.a: Invalid content was found starting with element ‘XX

本文发布于:2023-04-05 06:08:00,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/9e50138a6b03a9ff95e46324b85e5e00.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:type   cvc   complex   Invalid   element

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!

  • 45187文章数
  • 14阅读数
  • 0评论数