日期:2014-05-20  浏览次数:20800 次

spring的xml出错了...
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 已经配置了啊...

------解决方案--------------------
The content of element type "beans" must match "(description?,(import|alias|
bean)*)".
是 beans标签配置不匹配吧
------解决方案--------------------
引用{可能是你的版本问题。}