Fork me on GitHub
摘要: 文章目录基于继承的Event基于注解的Event异步侦听器 Spring提供了很方便的事件的处理机制,包括事件类ApplicationEvent和事件监听类ApplicationListener。 他实现的是设计者模式,如果实现了ApplicationListener接口的bean部署到Spring 阅读全文
posted @ 2019-08-18 05:34 flydean 阅读(401) 评论(0) 推荐(0) 编辑
摘要: 文章目录ProfilesPropertySource使用@PropertySource Spring的Environment接口有两个关键的作用:1. Profile, 2.properties。可以看下该接口的定义: public interface Environment extends Pro 阅读全文
posted @ 2019-08-18 05:32 flydean 阅读(346) 评论(0) 推荐(0) 编辑