我发现只有当我-Dcontext=web输入VM参数时,才能通过System.getproperty方法读取该值.我想知道这两者之间有什么区别?
-Dcontext=web
System.getproperty
java eclipse
eclipse ×1
java ×1