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

elastic-job无法加载占位符实现远程加载配置。 #141

Closed
843257317 opened this issue Oct 9, 2016 · 3 comments
Closed

elastic-job无法加载占位符实现远程加载配置。 #141

843257317 opened this issue Oct 9, 2016 · 3 comments

Comments

@843257317
Copy link

通过“org.springframework.beans.factory.config.PropertyPlaceholderConfigurer” 实现远程加载占位符 “${}” 配置,发现elastic-job的 serverList 属性(zk地址),用占位符无法获取。其他的如dubbo都是正常的。

@843257317
Copy link
Author

我们在项目中用了xxl-conf类似config-tool的工具,希望远程获取配置信息,所有的配置均可以取到唯独elastic-job的配置无法获取。本来elastic-job是独立的spring xml配置文件,为了排除加载不到或者是加载顺序问题,将配置信息挪到dobbo的spring文件里,依然获取不到。将该值写死在serverList 里是ok的

@843257317 843257317 changed the title elastic-job无法加载占位符配置。 elastic-job无法加载占位符实现远程加载配置。 Oct 12, 2016
@yangl
Copy link
Contributor

yangl commented Oct 19, 2016

试下把elastic-job相关的配置移到context:property-placeholder所在的文件里哈

@terrymanu
Copy link
Member

elastic-job并不需要加载远程配置。
加载远程配置是注册中心的功能。
近期elastic-job会把从zk加载文件到placeholder的功能去掉

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

No branches or pull requests

3 participants