Spring知识点回顾(05)bean的初始化和销毁 Java配置方式:@Bean @InitMethod @destroyMethod xml配置方式:init-method,destroy-method 注解方式:@PostConstruct,@PreDestroy