业务需求中,可能会有一些逻辑需要在应用启动完成后,例如字典缓存,资源池初始化等等,代码如下 public class InitApplication implements ApplicationContextAware,ApplicationListener<ContextRefreshedEvent> { private Logger logger = LoggerFactory.getLogger(InitApplication.class); private ApplicationCon…