摘要:
有时候我们需要在spring boot容器启动并加载完后,开一些线程或者一些程序来干某些事情。这时候我们需要配置ContextRefreshedEvent事件来实现我们要做的事情 1、ApplicationStartup类 public class ApplicationStartup implem 阅读全文
posted @ 2017-10-29 23:55
牧之丨
阅读(1228)
评论(0)
推荐(0)
摘要:
http://blog.csdn.net/liaokailin/article/details/48186331 前言 spring boot在启动过程中增加事件监听机制,为用户功能拓展提供极大的便利。 支持的事件类型四种 ApplicationStartedEvent ApplicationEnv 阅读全文
posted @ 2017-10-29 19:11
牧之丨
阅读(2252)
评论(0)
推荐(0)
浙公网安备 33010602011771号