作为 --systemProperties 命令行参数的操作数的文件格式是什么?
What is the format of the file serving as the operand to the --systemProperties command line argument?
当运行Payara Micro时,你可以use the --systemProperties
command line argument to specify a file containing system properties to set。这个文件的格式是什么?
举个例子(使用 Payara Micro 172),如果我创建一个名为 system.properties
的文件并通过以下方式使用它:
java -jar myPayaraJar.jar ... --systemProperties system.properties
...看起来像这样:
payaramicro.disablePhoneHome=true
...那么我没有看到给家里打电话已被禁用。相比之下,如果我指定 --disablephonehome
作为命令行选项,我会看到 Payara 已禁用此功能。
我应该改用此属性文件的其他格式吗?
我从 source code 看到这个文件的格式是一个普通的 java.util.Properties
文件。肯定还有其他错误。
文件的格式是通常的Java属性文件。
但是,Payara Micro 似乎有一个错误。我看到你已经在 github 中提出了一个错误,这是你能做的最好的:https://github.com/payara/Payara/issues/1953
当运行Payara Micro时,你可以use the --systemProperties
command line argument to specify a file containing system properties to set。这个文件的格式是什么?
举个例子(使用 Payara Micro 172),如果我创建一个名为 system.properties
的文件并通过以下方式使用它:
java -jar myPayaraJar.jar ... --systemProperties system.properties
...看起来像这样:
payaramicro.disablePhoneHome=true
...那么我没有看到给家里打电话已被禁用。相比之下,如果我指定 --disablephonehome
作为命令行选项,我会看到 Payara 已禁用此功能。
我应该改用此属性文件的其他格式吗?
我从 source code 看到这个文件的格式是一个普通的 java.util.Properties
文件。肯定还有其他错误。
文件的格式是通常的Java属性文件。
但是,Payara Micro 似乎有一个错误。我看到你已经在 github 中提出了一个错误,这是你能做的最好的:https://github.com/payara/Payara/issues/1953