Skip to content
This repository has been archived by the owner on Nov 24, 2018. It is now read-only.

spring boot的java config配置问题 #31

Open
dongfangchao opened this issue Sep 14, 2017 · 1 comment
Open

spring boot的java config配置问题 #31

dongfangchao opened this issue Sep 14, 2017 · 1 comment

Comments

@dongfangchao
Copy link

dongfangchao commented Sep 14, 2017

参考了作者的 https://github.com/hengyunabc/xdiamond/wiki/%E6%94%AF%E6%8C%81spring-boot%E9%87%8C%E7%9A%84@ConfigurationProperties 里面的xml配置,想做个java config配置,使用@bean实例化XDiamondConfigFactoryBean,但是读取命令行参数时总是失败。比如--xdiamond.serverHost=127.0.0.1,这个参数要应用到XDiamondConfigFactoryBean的serverHost属性,但是总是为空,请问是什么引起的,该怎么解决这个问题?谢谢

@hengyunabc
Copy link
Owner

试下配置用 -D 参数

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

No branches or pull requests

2 participants