Retrieve system parameters of Java programs
The system parameters passed in when executing a Java program can be obtained in the program through the following methods: Java - D parameter 1=value 1 Java program name Properties props=new Properties (System. getProperties ()); String output Mode=props. getProperty (“Parameter 1”);
All articles on this blog are licensed under CC BY-NC-SA 4.0 unless otherwise stated.
评论