简体   繁体   English

System.getProperty() 显示 null

[英]System.getProperty() showing null

How so I get the default value of system property in java like ntlm.debug or jdk.tls.stapling.我如何获得 java 中系统属性的默认值,如 ntlm.debug 或 jdk.tls.stapling。 ignoreExtensions On using system.getProperty(Property name) gives null. ignoreExtensions On using system.getProperty(Property name) 给出 null。 I am running with jdk version 11.0.7 Is there any other way to get default values of the properties?我正在运行 jdk 版本 11.0.7 有没有其他方法可以获取属性的默认值?

System.getProperties() will give a map of all default properties of the system.
like
sun.management.compiler : HotSpot 64-Bit Tiered Compilers
sun.jnu.encoding : UTF-8
java.runtime.version : 14+36-1461
...

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM