- 在PropertySourcesProcessor中,需要通过http从config-server获取配置。
- 使用ConfigMeta包装服务信息
- 在MidnightConfigService接口中添加默认实现类
- 继承MidnightRepositoryChangeListener接口;
- 获取默认的MidnightRepository;
- 创建MidnightConfigServiceImpl实现类;
- 添加listener
- 定义MidnightRepositoryChangeListener,用于事件监听的回调接口
- onChange() 执行方法
- ChangeEvent变动事件,传递参数
- 定义MidnightRepository接口
-
<