事件:
发送事件 ApplicationEventPublisher::publishEvent(ApplicationEvent event)
监听事件方法注解:@EventListener
监听服务启停接口 ApplicationListener
public interface ApplicationListener<E extends ApplicationEvent> extends EventListener { void onApplicationEvent(E paramE); },
常用事件:if (applicationEvent instanceof ContextClosedEvent) {
标签:知识点,ApplicationListener,Spring,EventListener,监听,事件,梳理 From: https://www.cnblogs.com/clarino/p/17253300.html