Created
October 12, 2019 08:31
-
-
Save gjp0609/b68d278f160f6bc7122cefc8929d3205 to your computer and use it in GitHub Desktop.
java use local proxy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
static { | |
String proxyHost = "127.0.0.1"; | |
String proxyPort = "1080"; | |
System.setProperty("http.proxyHost", proxyHost); | |
System.setProperty("http.proxyPort", proxyPort); | |
System.setProperty("https.proxyHost", proxyHost); | |
System.setProperty("https.proxyPort", proxyPort); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment