① Delayed Bean initialization (inert Bean initialization) means creating and initializing Beans only when they are actually used, instead of initializing beans in advance. the configuration method is simple. You only need to specify the "lazy-init" attribute value as "true" on the <bean> tag to delay Bean initialization. Configuration File: HelloWorld. xml <bean id = "helloApi" class = "cn. javass. spring. chapter2.helloworld. helloImpl "lazy-init =" true "/> www.2cto.com ② depends-on indicates the sequence of Bean initialization and destruction, the Bean specified by the depends-on Attribute must be initialized before the current Bean is initialized. Because only the "singleton" Bean can be managed and destroyed by Spring, therefore, when the specified Bean is "singleton", the Bean specified by the depends-on Attribute must be destroyed after the specified Bean. Configuration code: <bean id = "helloApi" class = "com. feng. spring. chapter2.helloworld. helloApi "> </bean> <bean id =" decorator "class =" cn. javass. spring. chapter3.bean. helloApiDecorator "depends-on =" helloApi "> <property name =" helloApi "> <ref bean =" helloApi "/> </property> </bean>