【发布时间】:2018-07-17 18:44:17
【问题描述】:
我在看SpringApplication的源码,发现Listener有两种。
-
有一个
声明的类字段ApplicationListner列表作为用private List<ApplicationListener<?>> listeners -
在
声明run方法中,我找到了SpringApplicationRunListeners用SpringApplicationRunListeners listeners = getRunListeners(args);
它们有什么区别?
非常感谢。
【问题讨论】:
标签: java spring spring-boot listener