摘要: Spring有三对初始化和销毁方法 通过@Bean注解指定initMethod和destroyMethod 实现InitializingBean和DisposableBean接口 使用@PostContruct和@PreDestroy 那么问题来了,这三个执行的优先级是什么呢? 定义一个Car类 p 阅读全文
posted @ 2021-07-05 17:29 程序员茄子 阅读(390) 评论(0) 推荐(0)