We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Describe the bug 在spring父上下文初始化nacos,接着用xml生成子上下文,这边再配置nacos初始化,取值没问题, 但是nacos server更新以后,子上下文环境的@nacosValue无法更新值,NacosValueAnnotationBeanPostProcessor内place HolderNacosValueTargetMap存的是父上下文环境的内容,导致无法更新
Expected behavior 有没有可能spring上下文环境隔离,事件分别触发
Acutally behavior A clear and concise description of what you actually to happen.
How to Reproduce Steps to reproduce the behavior:
Desktop (please complete the following information):
Additional context Add any other context about the problem here.
The text was updated successfully, but these errors were encountered:
可以自行尝试往子spring上下文中注入新的nacosConfigService。
nacos-spring-context目前不考虑这个场景。
Sorry, something went wrong.
nacosConfigService 注入nacosConfigService然后从这里面自己拿么?? 尴尬 现在好像Environment里面已经有了 就是反射写到对象不行
不是很懂你的场景。注入到子Environment之后,有变更可能会走你注入的nacosConfigService。
具体你需要自己调研下,之前没有人提过类似的需求,目前来看Spring Cloud也不支持这样的玩法。应该算是个例的定制化需求了。
No branches or pull requests
Describe the bug
在spring父上下文初始化nacos,接着用xml生成子上下文,这边再配置nacos初始化,取值没问题,
但是nacos server更新以后,子上下文环境的@nacosValue无法更新值,NacosValueAnnotationBeanPostProcessor内place HolderNacosValueTargetMap存的是父上下文环境的内容,导致无法更新
Expected behavior
有没有可能spring上下文环境隔离,事件分别触发
Acutally behavior
A clear and concise description of what you actually to happen.
How to Reproduce
Steps to reproduce the behavior:
Desktop (please complete the following information):
Additional context
Add any other context about the problem here.
The text was updated successfully, but these errors were encountered: