xml报错解决:cvc-complex-type.2.4.a: Invalid content was found starting with element
来源:互联网 发布:js截取字符串 编辑:程序博客网 时间:2024/06/03 13:44
在写xml的时候又一次总是报cvc-complex-type.2.4.a: Invalid content was found starting with element 错误,还出现小红叉,在网上找了很多,有说是把报红叉的代码写在<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="的标签中
- <?xml version="1.0" encoding="UTF-8"?>
- <web-app version="2.4" xmlns="http://java.sun.com/xml/ns/j2ee"
- xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance http://www.springmodules.org/schema/cache/springmodules-cache.xsd http://www.springmodules.org/schema/cache/springmodules-ehcache.xsd" xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
- http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd
- ">
0 0
- xml报错解决:cvc-complex-type.2.4.a: Invalid content was found starting with element
- 解决XML中报“cvc-complex-type.2.4.a: Invalid content was found starting with element ”错误
- 报错cvc-complex-type.2.4.a: Invalid content was found starting with element 'async-supported'
- web.xml 报错cvc-complex-type.2.4.a: Invalid content was found starting with element 'cookie-config'...
- tld xml cvc-complex-type.2.4.a: Invalid content was found starting with element
- 解决cvc-complex-type.2.4.a: Invalid content was found starting with element 'page-encoding'. ..问题
- Web.xml配置<taglib>标签报错问题(cvc-complex-type.2.4.a: Invalid content was found starting with element 'tag
- cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'错误
- “cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'”错误的解决办法
- cvc-complex-type.2.4.a: Invalid content was found starting with element
- cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'错误
- cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'错误
- cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'错误
- cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'错误
- cvc-complex-type.2.4.a: Invalid content was found starting with element 'taglib'错误
- cvc-complex-type.2.4.a: Invalid content was found starting with element
- cvc-complex-type.2.4.a: Invalid content was found starting with element
- “cvc-complex-type.2.4.a: Invalid content was found starting with element 'book'”错误的解决办法
- 区块链(三)--Bitcoin、Ethereum、Hyperledger Fabric
- Hibernate注解(一)
- 简单工厂模式
- java入门基础03-HelloWorld
- 通用CSS样式
- xml报错解决:cvc-complex-type.2.4.a: Invalid content was found starting with element
- 最近要完成的工作
- 女程序员梦见男友出轨,是这样反击的
- 概率DP总结(待整理)
- Nagios监控
- Java:对double值进行四舍五入,保留两位小数的几种方法
- 下拉搜索框 条件查询
- 性能优化
- AngularJs到底是神魔