Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我正在使用 Jetty 配置文件,并且我想使用之前定义的属性中的“jetty.jmxrmiport”。
目前,我正在使用:
<SystemProperty name="jetty.jmxrmiport" default="1099"/>
我想使用变量而不是1099. 就像 in 一样propertyplaceholderconfigurer,我们可以使用{$abc}.
1099
propertyplaceholderconfigurer
{$abc}
有什么方法可以在这里使用属性吗?
"jetty.jmxrmiport"是标准系统属性的名称。
"jetty.jmxrmiport"
-Djetty.jmxrmiport=4099如果你希望它是一个不同的值,你可以开始码头。
-Djetty.jmxrmiport=4099