在我的* .ini文件中,我有以下部分:
[server-a]
applicationkey = <keyid>
xuserid = <userid>
host = <full host with paths>
:
[server-b]
applicationkey = <keyid>
xuserid = <userid>
host = <full host with paths>
:
如何添加[server-test]部分以使用与[server-b]相同的键值对 如果我在[server-b]上面添加一个空的[server-test],它会回退到[DEFAULT]
[server-test]
default=server-b
不起作用
使用ExtendedInterpolation()我可以替换,但不能替换section = section:
[server-test]
applicationkey = ${server-a:applicationkey}
xuserid = ${server-a:xuserid}
host = ${server-a:host}
可以,但这就像剪切和粘贴一样。
[service-test]
service-test = ${server-a}
不起作用