java - Is there a way to pass all properties from a property-file as JVM params? -
java - Is there a way to pass all properties from a property-file as JVM params? -
we can pass single property through java cli using -d
argument:
java -dkey=value ...
is there way pass properties property file in way?
something like:
java -dprop.file=myproperties.properties ...
you can if add
system.getproperties().load(new fileinputstream(system.getproperty("prop.file")));
java properties
Comments
Post a Comment