<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:jms="http://www.springframework.org/schema/jms"
xmlns:amq="http://activemq.apache.org/schema/core"
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context.xsd
http://www.springframework.org/schema/jms
http://www.springframework.org/schema/jms/spring-jms.xsd
http://activemq.apache.org/schema/core
http://activemq.apache.org/schema/core/activemq-core.xsd">
当我运行这个应用程序时,它抱怨说:
org.xml.sax.SAXParseException:SchemaLocation:schemaLocation value ='http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans.xsd http:/ /www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context.xsd http://activemq.apache.org/schema/core'必须包含偶数个URI .
1 回答
例外是缺少您在beans标记“http://activemq.apache.org/schema/core/activemq-core.xsd”中提供的最后一个模式URI . 您是否有可能在其中遗漏该URI的配置的另一个副本,或者尚未部署具有该URI的配置?
该异常与配置不匹配,因此我问您作为配置提供的内容是否完全准确 .