在spring2中应该是这样配置的
<bean scope="singleton">

解决方案 »

  1.   

    - <xsd:attribute name="scope" type="xsd:string">
    - <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的定义
      

  2.   

    http://www.springsource.org/schema/beans/spring-beans-2.0.xsd..可以看看这个