2 beijingxlu beijingxlu 于 2016.03.30 13:01 提问

配置文件问题(焦急)







现在报错信息:
2016-03-30 12:19:51.968 INFO 4796 --- [ main] o.s.b.f.xml.XmlBeanDefinitionReader : Loading XML bean definitions from class path resource [front.xml]
2016-03-30 12:19:52.031 WARN 4796 --- [ main] ationConfigEmbeddedWebApplicationContext : Exception encountered during context initialization - cancelling refresh attempt: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 5 in XML document from class path resource [front.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 106; 涓庡厓绱犵被鍨? "beans" 鐩稿叧鑱旂殑灞炴?? "xsi:schemaLocation" 鐨勫墠缂? "xsi" 鏈粦瀹氥??
2016-03-30 12:19:52.031 INFO 4796 --- [ main] .b.l.ClasspathLoggingApplicationListener : Application failed to start with classpath: [file:/E:/workspace/yycrm/yycrm-collection-web/target/classes/, file:/G:/maven_jar/org/apache/commons/commons-lang3/3.4/commons-lang3-3.4.jar, file:/G:/maven_jar/org/codehaus/jettison/jettison/1.2/jettison-1.2.jar, file:/G:/maven_jar/org/springframework/boot/spring-boot-starter-web/1.3.0.RELEASE/spring-boot-starter-web-1.3.0.RELEASE.jar, file:/G:/maven_jar/io/netty/netty/3.7.0.Final/netty-3.7.0.Final.jar, file:/G:/maven_jar/com/fasterxml/jackson/core/jackson-core/2.6.3/jackson-core-2.6.3.jar, file:/G:/maven_jar/org/mybatis/mybatis/3.3.0/mybatis-3.3.0.jar, file:/G:/maven_jar/log4j/log4j/1.2.17/log4j-1.2.17.jar, file:/G:/maven_jar/org/springframework/spring-tx/4.2.3.RELEASE/spring-tx-4.2.3.RELEASE.jar, file:/G:/maven_jar/aopalliance/aopalliance/1.0/aopalliance-1.0.jar, file:/G:/maven_jar/org/springframework/spring-webmvc/4.2.3.RELEASE/spring-webmvc-4.2.3.RELEASE.jar, file:/G:/maven_jar/com/github/jsqlparser/jsqlparser/0.9.1/jsqlparser-0.9.1.jar, file:/G:/maven_jar/org/slf4j/log4j-over-slf4j/1.7.13/log4j-over-slf4j-1.7.13.jar, file:/G:/maven_jar/org/apache/poi/poi-ooxml-schemas/3.12/poi-ooxml-schemas-3.12.jar, file:/G:/maven_jar/org/eclipse/jdt/core/compiler/ecj/4.4.2/ecj-4.4.2.jar, file:/G:/maven_jar/com/fasterxml/aalto-xml/0.9.11/aalto-xml-0.9.11.jar, file:/G:/maven_jar/org/springframework/spring-context-support/4.2.3.RELEASE/spring-context-support-4.2.3.RELEASE.jar, file:/G:/maven_jar/javax/servlet/jstl/1.2/jstl-1.2.jar, file:/G:/maven_jar/org/springframework/boot/spring-boot-starter-logging/1.3.0.RELEASE/spring-boot-starter-logging-1.3.0.RELEASE.jar, file:/G:/maven_jar/ch/qos/logback/logback-classic/1.1.3/logback-classic-1.1.3.jar, file:/G:/maven_jar/com/fasterxml/classmate/1.1.0/classmate-1.1.0.jar, file:/G:/maven_jar/xmlpull/xmlpull/1.1.3.1/xmlpull-1.1.3.1.jar, file:/G:/maven_jar/org/springframework/boot/spring-boot-starter-redis/1.3.0.RELEASE/spring-boot-starter-redis-1.3.0.RELEASE.jar, file:/G:/maven_jar/org/springframework/batch/spring-batch-infrastructure/3.0.5.RELEASE/spring-batch-infrastructure-3.0.5.RELEASE.jar, file:/G:/maven_jar/org/hamcrest/hamcrest-core/1.3/hamcrest-core-1.3.jar, file:/G:/maven_jar/com/thoughtworks/xstream/xstream/1.4.7/xstream-1.4.7.jar, file:/G:/maven_jar/javax/batch/javax.batch-api/1.0/javax.batch-api-1.0.jar, file:/G:/maven_jar/org/slf4j/slf4j-api/1.7.13/slf4j-api-1.7.13.jar, file:/G:/maven_jar/org/springframework/spring-core/4.2.3.RELEASE/spring-core-4.2.3.RELEASE.jar, file:/G:/maven_jar/org/springframework/boot/spring-boot-starter-tomcat/1.3.0.RELEASE/spring-boot-starter-tomcat-1.3.0.RELEASE.jar, file:/G:/maven_jar/org/hibernate/hibernate-validator/5.2.2.Final/hibernate-validator-5.2.2.Final.jar, file:/G:/maven_jar/com/ibm/jbatch/com.ibm.jbatch-tck-spi/1.0/com.ibm.jbatch-tck-spi-1.0.jar, file:/G:/maven_jar/org/springframework/boot/spring-boot-starter-jdbc/1.3.0.RELEASE/spring-boot-starter-jdbc-1.3.0.RELEASE.jar, file:/G:/maven_jar/org/springframework/boot/spring-boot-starter-aop/1.3.0.RELEASE/spring-boot-starter-aop-1.3.0.RELEASE.jar, file:/G:/maven_jar/org/slf4j/jul-to-slf4j/1.7.13/jul-to-slf4j-1.7.13.jar, file:/G:/maven_jar/javax/validation/validation-api/1.1.0.Final/validation-api-1.1.0.Final.jar, file:/G:/maven_jar/org/springframework/boot/spring-boot-starter/1.3.0.RELEASE/spring-boot-starter-1.3.0.RELEASE.jar, file:/G:/maven_jar/org/apache/httpcomponents/httpclient/4.5.1/httpclient-4.5.1.jar, file:/G:/maven_jar/org/springframework/spring-beans/4.2.3.RELEASE/spring-beans-4.2.3.RELEASE.jar, file:/G:/maven_jar/org/apache/commons/commons-pool2/2.4.2/commons-pool2-2.4.2.jar, file:/G:/maven_jar/org/springframework/spring-web/4.2.3.RELEASE/spring-web-4.2.3.RELEASE.jar, file:/G:/maven_jar/org/apache/poi/poi-ooxml/3.12/poi-ooxml-3.12.jar, file:/G:/maven_jar/org/mybatis/mybatis-spring/1.2.3/mybatis-spring-1.2.3.jar, file:/G:/maven_jar/org/yaml/snakeyaml/1.16/snakeyaml-1.16.jar, file:/G:/maven_jar/org/springframework/spring-expression/4.2.3.RELEASE/spring-expression-4.2.3.RELEASE.jar, file:/G:/maven_jar/org/codehaus/woodstox/stax2-api/4.0.0/stax2-api-4.0.0.jar, file:/G:/maven_jar/com/101tec/zkclient/0.7/zkclient-0.7.jar, file:/G:/maven_jar/jline/jline/0.9.94/jline-0.9.94.jar, file:/G:/maven_jar/org/aspectj/aspectjweaver/1.8.7/aspectjweaver-1.8.7.jar, file:/G:/maven_jar/com/fasterxml/jackson/dataformat/jackson-dataformat-xml/2.6.3/jackson-dataformat-xml-2.6.3.jar, file:/G:/maven_jar/mysql/mysql-connector-java/5.1.37/mysql-connector-java-5.1.37.jar, file:/G:/maven_jar/org/springframework/batch/spring-batch-core/3.0.3.RELEASE/spring-batch-core-3.0.3.RELEASE.jar, file:/G:/maven_jar/ch/qos/logback/logback-core/1.1.3/logback-core-1.1.3.jar, file:/G:/maven_jar/org/springframework/boot/spring-boot-autoconfigure/1.3.0.RELEASE/spring-boot-autoconfigure-1.3.0.RELEASE.jar, file:/G:/maven_jar/redis/clients/jedis/2.7.3/jedis-2.7.3.jar, file:/G:/maven_jar/xpp3/xpp3_min/1.1.4c/xpp3_min-1.1.4c.jar, file:/G:/maven_jar/org/springframework/spring-jdbc/4.2.3.RELEASE/spring-jdbc-4.2.3.RELEASE.jar, file:/G:/maven_jar/com/hp/crm/yycrm-common-core/1.1.0/yycrm-common-core-1.1.0.jar, file:/G:/maven_jar/org/apache/zookeeper/zookeeper/3.4.6/zookeeper-3.4.6.jar, file:/G:/maven_jar/org/springframework/session/spring-session/1.0.2.RELEASE/spring-session-1.0.2.RELEASE.jar, file:/G:/maven_jar/org/springframework/spring-aop/4.2.3.RELEASE/spring-aop-4.2.3.RELEASE.jar, file:/G:/maven_jar/commons-codec/commons-codec/1.10/commons-codec-1.10.jar, file:/G:/maven_jar/org/javassist/javassist/3.18.1-GA/javassist-3.18.1-GA.jar, file:/G:/maven_jar/org/apache/tomcat/embed/tomcat-embed-el/8.0.28/tomcat-embed-el-8.0.28.jar, file:/G:/maven_jar/org/apache/xmlbeans/xmlbeans/2.6.0/xmlbeans-2.6.0.jar, file:/G:/maven_jar/org/springframework/boot/spring-boot/1.3.0.RELEASE/spring-boot-1.3.0.RELEASE.jar, file:/G:/maven_jar/org/apache/tomcat/embed/tomcat-embed-logging-juli/8.0.28/tomcat-embed-logging-juli-8.0.28.jar, file:/G:/maven_jar/com/zaxxer/HikariCP/2.4.2/HikariCP-2.4.2.jar, file:/G:/maven_jar/org/apache/tomcat/embed/tomcat-embed-core/8.0.28/tomcat-embed-core-8.0.28.jar, file:/G:/maven_jar/org/springframework/data/spring-data-redis/1.6.1.RELEASE/spring-data-redis-1.6.1.RELEASE.jar, file:/G:/maven_jar/com/warrenstrange/googleauth/0.5.0/googleauth-0.5.0.jar, file:/G:/maven_jar/com/github/pagehelper/pagehelper/4.0.3/pagehelper-4.0.3.jar, file:/G:/maven_jar/org/slf4j/jcl-over-slf4j/1.7.13/jcl-over-slf4j-1.7.13.jar, file:/G:/maven_jar/junit/junit/4.12/junit-4.12.jar, file:/G:/maven_jar/org/springframework/spring-context/4.2.3.RELEASE/spring-context-4.2.3.RELEASE.jar, file:/G:/maven_jar/org/apache/tomcat/embed/tomcat-embed-websocket/8.0.28/tomcat-embed-websocket-8.0.28.jar, file:/G:/maven_jar/com/fasterxml/jackson/core/jackson-annotations/2.6.3/jackson-annotations-2.6.3.jar, file:/G:/maven_jar/com/fasterxml/jackson/module/jackson-module-jaxb-annotations/2.6.3/jackson-module-jaxb-annotations-2.6.3.jar, file:/G:/maven_jar/org/springframework/retry/spring-retry/1.1.2.RELEASE/spring-retry-1.1.2.RELEASE.jar, file:/G:/maven_jar/com/alibaba/dubbo/2.4.10/dubbo-2.4.10.jar, file:/G:/maven_jar/org/springframework/boot/spring-boot-starter-validation/1.3.0.RELEASE/spring-boot-starter-validation-1.3.0.RELEASE.jar, file:/G:/maven_jar/com/fasterxml/jackson/core/jackson-databind/2.6.3/jackson-databind-2.6.3.jar, file:/G:/maven_jar/org/apache/tomcat/embed/tomcat-embed-jasper/8.0.28/tomcat-embed-jasper-8.0.28.jar, file:/G:/maven_jar/org/jboss/logging/jboss-logging/3.3.0.Final/jboss-logging-3.3.0.Final.jar, file:/G:/maven_jar/org/apache/httpcomponents/httpcore/4.4.4/httpcore-4.4.4.jar, file:/G:/maven_jar/stax/stax-api/1.0.1/stax-api-1.0.1.jar]
2016-03-30 12:19:52.046 ERROR 4796 --- [ main] o.s.boot.SpringApplication : Application startup failed

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 5 in XML document from class path resource [front.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 106; 涓庡厓绱犵被鍨? "beans" 鐩稿叧鑱旂殑灞炴?? "xsi:schemaLocation" 鐨勫墠缂? "xsi" 鏈粦瀹氥??

10个回答

beijingxlu
beijingxlu   2016.03.30 13:03

配置文件如下:







beijingxlu
beijingxlu   2016.03.30 13:04







u012377333
u012377333   Rxr 2016.03.30 13:06

说的很明显了,application的第5行出现了错误。

caoshangpa
caoshangpa   2016.03.30 13:11

什么情况,为啥我看到的是乱码

CSDNXIAOS
CSDNXIAOS   2016.03.30 13:12

目前本人考虑到部门配置文件较多,所以想写个配置文件检测程序.目前大致的思路如下三部分;1, 读取配置文件的内容(*.ini). 查找配置文件,代码如下void CDataBaseDlg::OnSelectConfigParth() { // TODO: Add your control notification handler code here // TODO: Add your......
答案就在这里:C++中关于配置文件的问题
----------------------Hi,地球人,我是问答机器人小S,上面的内容就是我狂拽酷炫叼炸天的答案,除了赞同,你还有别的选择吗?

beijingxlu
beijingxlu   2016.03.30 13:15

明显找不到问题啊,哥

beijingxlu
beijingxlu   2016.03.30 13:15

配置内容如下:







beijingxlu
beijingxlu   2016.03.30 13:18

图片说明

beijingxlu
beijingxlu   2016.03.30 13:20

报错信息是乱码啊哥哥

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 5 in XML document from class path resource [front.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 106; 涓庡厓绱犵被鍨? "beans" 鐩稿叧鑱旂殑灞炴?? "xsi:schemaLocation" 鐨勫墠缂? "xsi" 鏈粦瀹氥??

sl_18500
sl_18500   2016.03.30 16:09

Line 5 in XML document from class path resource [front.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 106; 涓庡厓绱犵被鍨? "beans" 鐩稿叧鑱旂殑灞炴?? "xsi:schemaLocation" 鐨勫墠缂? "xsi" 鏈粦瀹氥??

乱码

Csdn user default icon
上传中...
上传图片
插入图片
准确详细的回答,更有利于被提问者采纳,从而获得C币。复制、灌水、广告等回答会被删除,是时候展现真正的技术了!