
具体代码如下
1 |
if (needsProxy()) { |
在跑jar包的时候设置
1 |
java -Dhttp.proxyHost=10.10.10.10 -Dhttp.proxyPort=8080 -Dhttp.proxyUser=username -Dhttp.proxyPassword=password -jar myJar.jar |

具体代码如下
1 |
if (needsProxy()) { |
1 |
java -Dhttp.proxyHost=10.10.10.10 -Dhttp.proxyPort=8080 -Dhttp.proxyUser=username -Dhttp.proxyPassword=password -jar myJar.jar |
近期评论