Attribute "scope" must be declared for element type "bean"
来源:互联网 发布:中国大学生失业数据 编辑:程序博客网 时间:2024/05/22 03:46
在配置Spring实体Bean文件时,提示如下截图错误:
进过一番百度,谷歌之后。出错的原因:原来Attribute "scope" 在spring2.0以后支持。
spring的XML配置文件的这个:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN//EN"
"http://www.springframework.org/dtd/spring-beans.dtd">
改成这个就可以了:
<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE beans PUBLIC "-//SPRING//DTD BEAN 2.0//EN"
"http://www.springframework.org/dtd/spring-beans-2.0.dtd">
0 0
- Attribute "scope" must be declared for element type "bean"
- Attribute "scope" must be declared for element type "bean"-[spring]
- Attribute "scope" must be declared for element type "bean"
- Attribute "scope" must be declared for element type "bean"
- "scope" must be declared for element type "bean"异常
- scope" must be declared for element type "bean"异常
- “scope” must be declared for element type “bean”异常
- Attribute "nameSpace" must be declared for element type "sqlMap".
- Attribute "column" must be declared for element type "property"解决办法
- Attribute "column" must be declared for element type "property"解决办法
- Attribute "resultClass" must be declared for element type "insert".
- Attribute "statementType" must be declared for element type "procedure"
- 1.Attribute "table" must be declared for element type "subclass".
- Attribute "resultCalss" must be declared for element type "select".
- Attribute "resource" must be declared for element type "mapper".
- Attribute "column" must be declared for element type "property"解决办法
- 【hibernate】Attribute "column" must be declared for element type "property"解决办法
- org.xml.sax.SAXParseException: Attribute "colum" must be declared for element type "result".
- 自旋锁和互斥锁区别
- 双向链表
- eclipse新建maven web项目流程
- BZOJ 3931 网络吞吐量 (最短路+最大流)
- hdu 4366 Successor (线段树xdfs序x排序预处理)
- Attribute "scope" must be declared for element type "bean"
- java字符与对应Ascii码互转
- Spring技术内幕——深入解析Spring架构与设计原理(一)IOC实现原理
- UISearchbar 搜索按钮更换 代码实现UISearchbar去除第一响应
- 用apktool反编译的时候出错:Exception in thread "main" brut.androlib.err.UndefinedResObject: resource spec:
- mongoose模块自动生成_id
- Unity_使用NGUI插件点击控件时同时检测到点击地面的解决方案
- import 简化Spring 配置文件
- hdojssworld VS DDD【概率dp求概率】