work hard work smart

专注于Java后端开发。 不断总结,举一反三。
  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2016年6月1日

摘要: ApplicationContext的事件机制是观察者设计模式的实现,通过ApplicationEvent类和ApplicationListerner接口来实现。 1. 创建EmailEvent 2. 创建EmailNotifier类 3. 创建容器配置文件 beans_mail.xml 4. 测试 阅读全文

posted @ 2016-06-01 17:28 work hard work smart 阅读(424) 评论(0) 推荐(0) 编辑