spring xml解析异常

来源:互联网 发布:ucsc数据库预测乙酰化 编辑:程序博客网 时间:2024/05/24 01:50

Caused by: org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 1 in XML document from class path resource [] is invalid; nested exception is org.xml.sax.SAXParseException: Content is not allowed in prolog.

出现该异常,有可能是spring 头部<beans xmlns="http://www.springframework.org/schema/beans"
       xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
       xsi:schemaLocation="http://www.springframework.org/schema/beans   http://www.springframework.org/schema/beans/spring-beans.xsd"> 中的链接不可达

0 0
原创粉丝点击