<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。
答案 0 :(得分:0)
异常缺少您在beans标记中提供的最后一个模式URI,&#34; http://activemq.apache.org/schema/core/activemq-core.xsd&#34;。您是否可能有另一个配置副本,其中您遗漏了该URI,或者没有部署具有该URI的配置?
例外情况与配置不匹配,因此我询问您给出的配置是否完全准确。