Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

现有Spring项目如何快速切换到apollo配置管理 #514

Closed
esky-tech opened this issue Jan 13, 2017 · 3 comments
Closed

现有Spring项目如何快速切换到apollo配置管理 #514

esky-tech opened this issue Jan 13, 2017 · 3 comments

Comments

@esky-tech
Copy link

如题

有没有相关解决方案,介绍,或者示例?

@magicdogs
Copy link

目前我们这边的项目使用 springboot 集成了apollo 配置管理,实现的方案其实差不多,主要是 自定义的ApolloConfigApplicationListener implements ApplicationListener,Ordered 这两个接口,
关注3个事件

image

image

apollo client 接入的使用方法,github 上面有对应的 使用说明。

@nobodyiam
Copy link
Member

感谢 @magicdogs 提供的使用例子~
@esky-tech Apollo后面会提供原生的实现支持Spring。

@nobodyiam
Copy link
Member

@esky-tech Pull Request #543 实现了Apollo支持Spring。

具体使用方式可以参考Java客户端使用文档

最后再次感谢 @magicdogs 提供的经验分享~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants