java - Setting system property from code. -


my question how dangerous use of system.setproperty(“https.protocols”, “tlsv1,tlsv1.1,tlsv1.2”); code. , how avoid ? there better way ? , if related -dhttps.protocols=tlsv1,tlsv1.1,tlsv1.2 can please explain because tried every blog or discussion , still don't type command. should in cmd ? ? should add in java bin conf file ? best practice of kind of things. related java 1.7 , protocol tlsv1.2 thank you.

the -d flag sets system property. both -d flag , system.setproperty equivalent.

where , when set depends on application. if want set application parameter, may applications equivalent of java -dsystem.property=value myapp. if want set programmatically, somewhere in code you'd write system.setproperty("system.property", "value");. @ point, it's matter of taste.


Comments

Popular posts from this blog

android - InAppBilling registering BroadcastReceiver in AndroidManifest -

python Tkinter Capturing keyboard events save as one single string -

sql server - Why does Linq-to-SQL add unnecessary COUNT()? -