我是靠谱客的博主 优美老鼠,这篇文章主要介绍spring xml解析异常,现在分享给大家,希望可以做个参考。

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"> 中的链接不可达

打个养成读书习惯的广告,扫二维码可以免费领取月卡:

最后

以上就是优美老鼠最近收集整理的关于spring xml解析异常的全部内容,更多相关spring内容请搜索靠谱客的其他文章。

本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
点赞(102)

评论列表共有 0 条评论

立即
投稿
返回
顶部