通过JBoss CLI使用多个--properties参数

通过JBoss CLI使用多个--properties参数,jboss,wildfly-10,Jboss,Wildfly 10,我想知道,是否可以在--properties参数中使用多个属性文件运行以下命令(或类似的命令) $JBOSS_HOME/bin/jboss-cli.sh --connect --user=admin --password=admin --properties=init.properties --properties=jvm.properties --file=init.cli 或 是的,你可以!你的第一个例子实际上是对的 下面是一个不实用的例子: 你好,物业部 世界地产 echo.cli 运

我想知道,是否可以在--properties参数中使用多个属性文件运行以下命令(或类似的命令)

$JBOSS_HOME/bin/jboss-cli.sh --connect --user=admin --password=admin --properties=init.properties --properties=jvm.properties --file=init.cli


是的,你可以!你的第一个例子实际上是对的


下面是一个不实用的例子:

你好,物业部 世界地产 echo.cli 运行:

$ $JBOSS_HOME/bin/jboss-cli.sh --connect --properties=hello.properties --properties=world.properties --file=echo.cli
Hello from the 'Second' property file
hello=Hello from the
world='Second' property file
set hello=${hello}
set world=${world}
echo $hello $world
$ $JBOSS_HOME/bin/jboss-cli.sh --connect --properties=hello.properties --properties=world.properties --file=echo.cli
Hello from the 'Second' property file