1、java配置方式 @Bean(initMethod="")
2、@PostConstruct和@PreDestroy标注在方法上
3、实现InitializingBean接口重写其afterPropertiesSet方法,实现DisposableBean接口重写destroy方法

相关文章:

  • 2023-04-04
  • 2022-01-30
  • 2021-11-25
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
  • 2022-12-23
猜你喜欢
  • 2022-01-16
  • 2021-10-31
  • 2022-12-23
  • 2022-12-23
  • 2021-06-05
  • 2022-12-23
  • 2022-01-01
相关资源
相似解决方案