Scope of the Java System Properties

前端 未结 7 739
灰色年华
灰色年华 2020-11-30 02:55

In Java we use System.setProperty() method to set some system properties. According to this article the use of system properties is bit tricky.

System

相关标签:
7条回答
  • 2020-11-30 03:42

    You don't say what your motivation is for using system properties.

    We use Spring for our configuration and set initial properties using a properties file that is injected into the XML. Changes to configuration whilst the app is running are made by using JMX.

    There are - of course - many other ways to change configuration in Java using properties file, xml based configuration etc.

    0 讨论(0)
提交回复
热议问题