bean的生命周期中实现BeanNameAware、BeanFactoryAware,ApplicationContextAware的作用
bean的生命周期其中,bean的初始化方法的可由多种方式指定:1.实现InitializingBean接口,重写afterPropertiesSet方法。2.在xml注解中通过init-method属性指定,然后在bean类中写具体的方法publicclassMyBeanClass{publicvoidinit(){//初始化逻辑}publicvoiddestroy(){//销毁逻辑}}3.通过