在spring2中应该是这样配置的
<bean scope="singleton">
<bean scope="singleton">
解决方案 »
- POI通过事件解析Excel,空单元格问题
- 到底什么是ajax?
- 固定JTable前几列和后几列,中间的列太多就出现滚动条,或者告诉我一个JScrollPane同时放三个JTABLE,但要求三JTABLE共用一个向下的滚动条
- 提取网页中的图片
- Element type "bean" must be declared.报错
- struts2中模型驱动怎样传值到实体类?
- 新手问题!关于数据存储的!
- java的Application中实现ftp的被动连接模式传文件,为何同一网络同一时间速度差异奇大?
- jboss能否自动加载class?
- smart上传文件遇到的问题,请高人指教
- Hibernate中increment?
- Spring JDBC运行中报的奇怪的错.有高手来解决下啊!在线等!
- <xsd:annotation>
- <xsd:documentation>
- <![CDATA[
The scope of this bean: typically "singleton" (one shared instance,
which will be returned by all calls to getBean with the given id), or
"prototype" (independent instance resulting from each call to getBean).
Default is "singleton". Singletons are most commonly used, and are ideal for multi-threaded
service objects. Further scopes, such as "request" or "session", might
be supported by extended bean factories (e.g. in a web environment). Note: This attribute will not be inherited by child bean definitions.
Hence, it needs to be specified per concrete bean definition. Inner bean definitions inherit the singleton status of their containing
bean definition, unless explicitly specified: The inner bean will be a
singleton if the containing bean is a singleton, and a prototype if
the containing bean has any other scope.
]]>
</xsd:documentation>
</xsd:annotation>
</xsd:attribute>你可以去看看spring beans的定义..其中没有singleton这个属性...也没有这个element...以上是scope的定义