SpringApplicationRunListener笔记
SpringApplicationRunListener:springboot中定义的应用上下文监听器。
/**
* 当run方法首次启动时立即调用。可用于非常早期初始化。
*/
void started();
/**
* ApplicationEnvironmentPreparedEvent事件类,当环境准备好回调
*/
void environmentPrepared(ConfigurableEnvironment environment);
/**
* 在context中注册广播器bean
*/
void contextPrepared(ConfigurableApplicationContext context);
/**
* ApplicationPreparedEvent事件
*/
void contextLoaded(ConfigurableApplicationContext context);
/**
* ApplicationFailedEvent()和ApplicationReadyEvent()事件
*/
void finished(ConfigurableApplicationContext context, Throwable exception);
最后
以上就是坦率牛排最近收集整理的关于【springboot】SpringApplicationRunListener的全部内容,更多相关【springboot】SpringApplicationRunListener内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复