首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > JAVA > J2SE开发 >

spring的xml出错了.解决方案

2012-01-21 
spring的xml出错了...Multiple annotations found at this line:- Attribute xsi:schemaLocation must b

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标签配置不匹配吧
[解决办法]
引用{可能是你的版本问题。}

热点排行