exception is org.xml.sax.SAXParseException; lineNumber: 6; columnNumber: 72; cvc-e
来源:互联网 发布:sql if exists用法 编辑:程序博客网 时间:2024/05/17 08:45
这是我的配置文件信息:
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:oxm="http://www.springframework.org/schema/oxm"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-4.1.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-4.1.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-4.1.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-4.1.xsd
http://www.springframework.org/schema/oxm
http://www.springframework.org/schema/oxm/spring-oxm-4.1.xsd">
Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 13 in XML document from class path resource [applicationContext.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 13; columnNumber: 72; cvc-elt.1: 找不到元素 'beans' 的声明。
弄了几个小时最后终于解决:
最后修改配置文件如下:
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:mvc="http://www.springframework.org/schema/mvc"
xmlns:oxm="http://www.springframework.org/schema/oxm"
xmlns:aop="http://www.springframework.org/schema/aop"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.1.xsd
http://www.springframework.org/schema/aop
http://www.springframework.org/schema/aop/spring-aop-3.1.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-3.1.xsd
http://www.springframework.org/schema/mvc
http://www.springframework.org/schema/mvc/spring-mvc-3.1.xsd
http://www.springframework.org/schema/oxm
http://www.springframework.org/schema/oxm/spring-oxm-3.1.xsd">
把版本弄低一点就可以了 。
- exception is org.xml.sax.SAXParseException; lineNumber: 6; columnNumber: 72; cvc-e
- ested exception is org.xml.sax.SAXParseException; lineNumber: 23; columnNumber: 106; cvc-elt.1: 找不到元
- nested exception is org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 73; cvc-elt.1: 找不到元
- ested exception is org.xml.sax.SAXParseException; lineNumber: 23; columnNumber: 106; cvc-elt.1: 找不到
- org.xml.sax.SAXParseException; lineNumber: 9; columnNumber: 105; cvc-elt.1: 找不到元素 'beans' 的声明。
- Caused by: org.xml.sax.SAXParseException; lineNumber: 102; columnNumber: 25; cvc-complex-type.2.4.b:
- org.xml.sax.SAXParseException; lineNumber: 17; columnNumber: 63; cvc-elt.1: 找不到元素 'beans' 的声明。
- Caused by: org.xml.sax.SAXParseException; lineNumber: 28; columnNumber: 81;
- Caused by: org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in
- org.xml.sax.SAXParseException; lineNumber: 1; columnNumber: 1; Content is not allowed in prolog
- spring错误提示:nested exception is org.xml.sax.SAXParseException; lineNumber: 10; columnNum原因
- Caused by: org.xml.sax.SAXParseException; lineNumber: 7; columnNumber: 72; 必须为元素类型 "beans" 声明属性 "xml
- ERROR : org.xml.sax.SAXParseException; lineNumber: 9; columnNumber: 6; 不允许有匹配 "[xX][mM][lL]" 的处理指令目标
- org.xml.sax.SAXParseException;lineNumber: 9; columnNumber: 6;不允许有匹配 "[xX][mM][lL]"的处理指令目标。
- org.xml.sax.SAXParseException; lineNumber: 23; columnNumber: 29; schema_reference.4: 无法读取方案文档 'http:
- Caused by: org.xml.sax.SAXParseException; lineNumber: 30; columnNumber: 84; 对实体 "characterEncoding"
- eclipse 启动项目org.xml.sax.SAXParseException; lineNumber: 18; columnNumber: 1; 文件提前结束
- Caused by: org.xml.sax.SAXParseException; lineNumber: 3; columnNumber: 44; 值为 "none" 的属性 "parallel"
- zkClient实现master选举
- spark Broadcast 内幕解密
- iOS代码重构(二)CoreData多线程(支持线程安全)
- 开源Profiler的比较
- openwrt 开发,持续更新
- exception is org.xml.sax.SAXParseException; lineNumber: 6; columnNumber: 72; cvc-e
- hdu1789 Doing Homework again
- C语言非连通图的深度优先遍历
- 字符编码中的BOM
- how to differ wireless network connection and local area connection
- 变色的旋转圆圈JS特效代码
- 初探valiDate.js插件
- VAE(2)——基本思想
- 自己学Docker:10.Docker.v1.12升级到v1.13.0 正式版