spring中xml文件配置报错

zhangxm2015 2013-07-15 09:18:00
xml文件:
<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 "
xsi:schemaLocation="http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-3.0.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd" >
<context:annotation-config/>

..............
</beans>

报错行:<context:annotation-config/>
错误提示:cvc-complex-type.2.4.c: The matching wildcard is strict, but no declaration can be found for element
'context:annotation-config'.


...全文
110 1 打赏 收藏 转发到动态 举报
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
zhangxm2015 2013-07-15
  • 打赏
  • 举报
回复
xmlns:context="http://www.springframework.org/schema/context " xxx了 原来这行多个空格,害我不少时间

81,091

社区成员

发帖
与我相关
我的任务
社区描述
Java Web 开发
社区管理员
  • Web 开发社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧