-
Notifications
You must be signed in to change notification settings - Fork 401
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
为什么ssm项目中使用@ApolloConfigChangeListener不能实时收到更新配置变化,而springboot项目可以呢 #38
Comments
参考下 apollo-demo |
@nobodyiam 我将apollo-demo中的关于实时监听代码放到spring 的项目,还是不能实时接收到变化更新的推送变更,只能在源码设计的每5分钟轮询拉取的时候才能获取到,请您帮忙解答,谢谢 |
@ls417316172 监听器所在的bean需要被spring管理才行,你检查下是否没有被spring管理 |
@klboke 如下是我写的监听器代码: @lazy(false)
} |
确认在spring里有ConfigTest这个实例了么,我这边是可以实时生效的 |
@klboke 发您的代码段我看看呢 |
@klboke 以下是获取ConfigTest实力对象的验证代码(随便写了个测试类): @RestController
} |
@klboke 我的微信号就是我的github账号(ls417316172),如果您有时间我希望加您一下微信,进行更深层次的学习和验证,谢谢 |
我用的是apollo项目里的demo测试的 |
The text was updated successfully, but these errors were encountered: