自动装配配置支持数组类型
Closed this issue · 1 comments
sunhao-java commented
自动装配配置支持数组类型
sunhao-java commented
AutoConfiguration支持数组的写法:
-
Class
private String[] args;
private ProjectSetting[] settings; -
Properties
test.args.0=test1
test.args.1=test2
test.args.2=test3test.settings.0.url=baidu.com
test.settings.0.timeout=0test.settings.1.url=sina.com
test.settings.1.timeout=1test.settings.2.url=qq.com
test.settings.2.timeout=2