在 Java -D 中,D 代表什么? [英] In Java -D what does the D stand for?
问题描述
D 是什么
-Dproperty=value
设置系统属性值.
Java 应用程序启动器 代表什么?出于某种原因,它一直困扰着我,为什么是 D?
Of the Java application launcher stand for? For some reason it's been bothering me, why D?
推荐答案
我一直认为它是定义属性的值...可能是 C 编译器的遗留问题,通常在代码中使用 -D
类似于 #define
.
I've always assumed it was to define the value of a property... possibly a legacy from C compilers, which often use -D
as similar to #define
in code.
目前我最接近的来源是 一些 JDK 1.1 文档 将标志指定为:
The closest I have to a source for this at the moment is some JDK 1.1 documentation which specifies the flag as:
重新定义属性值.propertyName 是要更改其值的属性的名称,而 newValue 是要将其更改为的值.[...]
Redefines a property value. propertyName is the name of the property whose value you want to change and newValue is the value to change it to. [...]
那至少包含接近于define"的redefine"这个词:)
That at least contains the word "redefine" which is close to "define" :)
这篇关于在 Java -D 中,D 代表什么?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!