apolloconfig / apollo-use-cases

Show various usage scenarios and sample codes of the Apollo configuration center, welcome to share more configuration use cases in your daily work!
Apache License 2.0
945 stars 401 forks source link

动态刷新druid数据源实现 #24

Closed dandanheng closed 5 years ago

dandanheng commented 5 years ago

模仿示例,写了个druid的动态刷新数据源实现. DataSource更新成功,但查询的时候连接的还是旧数据源.是因为druid的问题吗

nobodyiam commented 5 years ago

应该和druid没啥关系,如果实现正确的话,在datasource层就已经换了一个了,建议再debug一下

dandanheng commented 5 years ago

谢谢,已经解决,demo里面的刷新bind前缀没有看清.

whd120130 commented 4 years ago

@dandanheng 大佬有demo 吗?我弄了好久没有成功