Multiple annotations found at this line:
- Attribute "xsi:schemaLocation" must be declared for element type "beans".
- The content of element type "beans" must match "(description?,(import|alias|
bean)*)".
- Attribute "xmlns:xsi" must be declared for element type "beans".
- Attribute "xmlns" must be declared for element type "beans".
- Attribute "xmlns:amq" must be declared for element type "beans".怎么回事? xml头如下<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.apache.org/schema/core"
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-2.5.xsd
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core-5.4.0.xsd "> xsd 已经配置了啊...
- Attribute "xsi:schemaLocation" must be declared for element type "beans".
- The content of element type "beans" must match "(description?,(import|alias|
bean)*)".
- Attribute "xmlns:xsi" must be declared for element type "beans".
- Attribute "xmlns" must be declared for element type "beans".
- Attribute "xmlns:amq" must be declared for element type "beans".怎么回事? xml头如下<beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.apache.org/schema/core"
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-2.5.xsd
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core-5.4.0.xsd "> xsd 已经配置了啊...
bean)*)".
是 beans标签配置不匹配吧
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd/spring-beans.dtd"><beans
xmlns="http://www.springframework.org/schema/beans"
xmlns:amq="http://activemq.apache.org/schema/core"
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-2.5.xsd
http://activemq.apache.org/schema/core http://activemq.apache.org/schema/core/activemq-core-5.4.0.xsd "> <bean class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<property name="locations">
<list>
<value>classpathsystemConfig.properties</value>
</list>
</property>
</bean>
<amq:connectionFactory id="drugCiticConnectionFactory"
brokerURL="${CITIC.BROKER.URL}" userName="${CITIC.BROKER.USERNAME}" password="${CITIC.BROKER.PASSWORD}"/> <amq:queue name="drugCiticDestination" physicalName="DRUG_CITIC_QUEUE" />
</beans>
全部代码...哪里不匹配了?
http://activemq.apache.org/schema/core/activemq-core-5.4.0.xsd ">
位置
那个版本?xsd 的版本么?Spring的jar包是否都导入了?
已经引入了
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd"
default-autowire="byName" default-lazy-init="true">