Spring(九)之事件處理

Spring的核心是ApplicationContext,它管理bean的完整生命週期。ApplicationContext在加載bean時發佈某些類型的事件。例如,ContextStartedEvent當上下文啓動,並公佈ContextStoppedEvent當上下文停止出版。 ApplicationContext中的事件處理是通過ApplicationEvent類和ApplicationLis
相關文章
相關標籤/搜索