-
通过@EventListener监听ApplicationReadyEvent事件
-
实现ApplicationRunner接口
-
实现InitializingBean接口中的afterPropertiesSet方法
-
使用@PostConstruct
如何在SpringBoot启动过程中做缓存预热
最新推荐文章于 2024-07-24 15:40:36 发布
通过@EventListener监听ApplicationReadyEvent事件
实现ApplicationRunner接口
实现InitializingBean接口中的afterPropertiesSet方法
使用@PostConstruct