如何解决将Spring应用打包成JAR包时遇到的问题?
- 内容介绍
- 文章标签
- 相关推荐
本文共计1224个文字,预计阅读时间需要5分钟。
今天将spring打包到一个jar包中,运行时抛出异常:Exception in thread main org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 5 in XML document from class path resource [spring.xml] is invalid; nested exception is org.xml.sax.SAXParseException: Invalid XML namespace declaration; namespace URI is missing.
今天把spring打包到一个jar包中,jar运行时抛异常
Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 5 in XML document from class path resource [spring.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 77; cvc-elt.1: 找不到元素 'beans' 的声明。
本文共计1224个文字,预计阅读时间需要5分钟。
今天将spring打包到一个jar包中,运行时抛出异常:Exception in thread main org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 5 in XML document from class path resource [spring.xml] is invalid; nested exception is org.xml.sax.SAXParseException: Invalid XML namespace declaration; namespace URI is missing.
今天把spring打包到一个jar包中,jar运行时抛异常
Exception in thread "main" org.springframework.beans.factory.xml.XmlBeanDefinitionStoreException: Line 5 in XML document from class path resource [spring.xml] is invalid; nested exception is org.xml.sax.SAXParseException; lineNumber: 5; columnNumber: 77; cvc-elt.1: 找不到元素 'beans' 的声明。

