摘要: spring在容器中使用了观察者模式: 一、spring事件:ApplicationEvent,该抽象类继承了EventObject类,jdk建议所有的事件都应该继承自EventObject。 二、spring事件监听器:ApplicationLisener,该接口继承了EventListener接 阅读全文
posted @ 2018-05-10 13:57 esther-qing 阅读(4196) 评论(1) 推荐(1) 编辑