我在standalone-full.xml中添加了system-properties标记,但它不能在独立模式下工作.但是,如果我在domain.xml中添加相同的标记,则它适用于域模式.
<?xml version='1.0' encoding='UTF-8'?> <server xmlns="urn:jboss:domain:2.2"> <extensions> .... </extensions> <system-properties> <property name="java.util.Arrays.useLegacyMergeSort" value="true"/> </system-properties> </server>
根据this article on jBoss General configuration concepts
System property values can be set in a number of places in domain.xml,host.xml and standalone.xml.
那么standalone-full.xml呢?
我不想通过命令行设置它,甚至不在java代码中.