cvc-complex-type.2.4.a: Invalid content was found starting with element 'display-name'. One of '{"
来源:互联网 发布:unity3d 第三人称射击 编辑:程序博客网 时间:2024/06/05 15:49
在写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
- cvc-complex-type.2.4.a: Invalid content was found starting with element 'display-name'. One of '{"
- dwr错误cvc-complex-type.2.4.a: Invalid content was found starting with element 'display- name'. One o
- cvc-complex-type.2.4.a: Invalid content was found starting with element 'display-name'.
- cvc-complex-type.2.4.a: Invalid content was found starting with element 'async-supported'. One of
- cvc-complex-type.2.4.a: Invalid content was found starting with element 'servlet-pattern'. One of
- cvc-complex-type.2.4.a: Invalid content was found starting with element 'attribute'. One of '{"http:
- 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'”错误的解决办法
- cvc-complex-type.2.4.a: Invalid content was found starting with element
- Java初学者的30个常见问题
- 【计组】-- 指令系统(2): 寻址技术
- windows环境下本地运行spark程序
- RHEL7:NTP时间同步设置
- Java核心技术点之泛型
- cvc-complex-type.2.4.a: Invalid content was found starting with element 'display-name'. One of '{"
- Kotlin-->Kotlin 和 Java 类型映射
- windows7 classPNP.sys卡住
- clone的fork与pthread_create创建线程有何不同&pthread多线程编程的学习小结
- socket error 10057问题 _错误记录
- 深度学习论文:RCNN
- 【C#
- PHP实现QQ快速登录的方法
- linuix压缩解压