注:
容器关闭:容器指的是 ApplicationContext 容器。
aware容器参数:aware 了解、明白之意,在该阶段,可以设置或获取比如beanName(即bean id)、BeanFactory、ApplicationContext.
init-method:如果使用 xml 配置文件来配置bean,可以自定义bean的 init-method.
destroy-method:同 init-method 释义。
注:
容器关闭:容器指的是 ApplicationContext 容器。
aware容器参数:aware 了解、明白之意,在该阶段,可以设置或获取比如beanName(即bean id)、BeanFactory、ApplicationContext.
init-method:如果使用 xml 配置文件来配置bean,可以自定义bean的 init-method.
destroy-method:同 init-method 释义。