Spring Application.xml Bean tag attributes

id: Specifies the unique name of the container

class: full class name

abstract: true-Specifies that this class is a virtual method and cannot be fetched, only inherited

parent: inherited from a class

depends-on: change the order and create it after depends-on

scope:

    propertype: multiple instances

        Container does not create Bean by default

        Each acquisition will create a new Bean

    singleton: single instance (default)

        Create objects and save them in the container before the container starts

        Get an object any time

Guess you like

Origin www.cnblogs.com/Timeouting-Study/p/12701103.html