SpringBoot源码之ApplicationListener《E extends ApplicationEvent》 extends EventListener

ApplicationListener :父类EventListener,用于被应用的事件监听器实现,基于{@code java.util.EventListener} 接口的观察者模式的实现,从Spring3.0开始ApplicationListener可以声明它感兴趣的事件类型,当在Spring ApplicationContext中注册时,将相应地过滤事件,只调用侦听器来匹配事件对象。 vo
相关文章
相关标签/搜索