摘要:Spring 对Bean的生命周期的操作提供了支持。具体实现又两种方式 1.使用@Bean 中的 initMethod 和 destroyMethod2.注解方式 利用JSR-250 中的@PostConstruct 和 @PreDesctroy 两种方式的具体用法如下 1.创建功能,为了快速完成项
阅读全文
posted @ 2019-07-15 19:36
posted @ 2019-07-15 19:36
posted @ 2019-07-14 17:17
posted @ 2019-07-04 12:24
posted @ 2019-07-02 11:42