Spring配置文件中DOCTYPE与冲突问题

markbug 2015-12-12 12:30:18
这是DOCTYPE

<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN" "http://www.springframework.org/dtd:/spring-beans.dtd">

这是beans里的配置
<beans xmlns="http://www.springframework.org/schema/beans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xmlns:aop="http://www.springframework.org/schema/aop"
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/aop http://www.springframework.org/schema/aop/spring-aop-2.5.xsd
http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-2.5.xsd">


报错信息:

Multiple annotations found at this line:
- The content of element type "beans" must match "(description?,(import|alias|
bean)*)".
- Attribute "xsi:schemaLocation" must be declared for element type "beans".
- Attribute "xmlns:xsi" must be declared for element type "beans".
- Attribute "xmlns" must be declared for element type "beans".
- Attribute "xmlns:tx" must be declared for element type "beans".
- Attribute "xmlns:aop" must be declared for element type "beans".

求大神
...全文
373 回复 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
回复
切换为时间正序
请发表友善的回复…
发表回复

81,122

社区成员

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

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