cvc-complex-type.2.3: Element 'beans' cannot have character [children] (转载)
来源:互联网 发布:relief f算法 编辑:程序博客网 时间:2024/06/08 08:24
在编写spring的applicationContext.xml文件时,无缘无辜出现了:
cvc-complex-type.2.3: Element 'beans' cannot have character [children], because the type's content type is element-only.错误。
错误原因:Spring在初始化的时候无法识别applicationContext.xml中的元素。
可能产生该错误的原因:网上复制的代码直接粘贴到了xml文件中,而网上的代码可能不符合xml规范
解决办法:1.去掉xml文件中的中文注解,因为复制的有些注解Spring不能识别。
2.若仍然有错,则尝试修改多余的空格,因为中文空格Spring有可能识别错误。
3.最后的绝招:重新手动抄写一遍文件内容,保存。
阅读全文
0 0
- cvc-complex-type.2.3: Element 'beans' cannot have character [children] (转载)
- cvc-complex-type.2.3: Element 'beans' cannot have character [children]
- cvc-complex-type.2.3: Element 'beans' cannot have character [children]
- cvc-complex-type.2.3: Element 'beans' cannot have character [children], because the type's conte
- cvc-complex-type.2.3: Element 'beans' cannot have character [children], because the type's content t
- cvc-complex-type.2.3:Element 'filter-mapping' cannot have character [children],because the type's co
- cvc-complex-type.2.3: Element 'dependency' cannot have character [children], because the type's cont
- cvc-complex-type.2.3:Element 'filter-mapping' cannot have character [children],because the type's co
- cvc-complex-type.2.3: Element 'list' cannot have character [children], because the type's content ty
- cvc-complex-type.2.3: Element 'dependency' cannot have character [children], because the type's cont
- cvc-complex-type.2.3:Element 'filter-mapping' cannot have character [children],because the type's co
- cvc-complex-type.2.3: Element 'web-app' cannot have character [children], because the type's content
- cvc-complex-type.2.3: Element 'servlet' cannot have character [children], because the type's content
- java web.xml报错cvc-complex-type.2.3: Element 'web-app' cannot have character [children]
- cvc-complex-type.2.3:Element \'filter-mapping\' cannot have character [children],because the type\'s content type is element-onl
- - cvc-complex-type.2.3: Element 'web-app' cannot have character
- cvc-complex-type.2.3: Element 'web-app' cannot have character
- 兔子-cvc-complex-type.2.3: Element 'web-app' cannot have character [children], because the type's cont
- MAC Windows linux(树莓派)三平台配置 opencv2.4.13 + QT环境
- Java中HashMap造成的死循环问题
- 微信开发总结(临时)
- iOS-计算绕某点旋转得到旋转后的点公式
- Spring+ActiveMQ实现消息的交换
- cvc-complex-type.2.3: Element 'beans' cannot have character [children] (转载)
- 003
- spring mvc 请求转发(forward)和重定向(redirect )的简单理解
- Linux监听进程是否存在,并加入定时任务
- Java 实例
- Angular2-使用Angular-CLI快速搭建工程(二)
- 1066. Root of AVL Tree (25)
- webstrom配置scss编译环境
- LongAdder的实现以及与AtomicLong的对比