站内搜索:
首页 >> 前端 >> 内容
Spring配置文件xml头导致的错误

时间:2017/5/25 9:37:00

Spring配置文件xml头导致的错误

Eclipse报错信息

org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 3 in XML document from class path resource [spring-ioc.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 3; columnNumber: 1; Content is not allowed in prolog.
at org.springframework.beans.factory.xml.XmlBeanDefinitionReader.doLoadBeanDefinitions(XmlBeanDefinitionReader.java:398)


xml文件用编辑方式打开是这样的:




    

 

从网页上复制下来变成这样的:



-



以后要注意了,不要再给自己挖这样的坑了!!!

  • 上一篇:对象引用
  • 下一篇:flask后端接收ajax
  • 返回顶部