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

ApplicationListener :父類EventListener,用於被應用的事件監聽器實現,基於{@code java.util.EventListener} 接口的觀察者模式的實現,從Spring3.0開始ApplicationListener可以聲明它感興趣的事件類型,當在Spring ApplicationContext中註冊時,將相應地過濾事件,只調用偵聽器來匹配事件對象。 vo
相關文章
相關標籤/搜索