62,614
社区成员
发帖
与我相关
我的任务
分享
Authenticator.setDefault(new Authenticator() {
protected PasswordAuthentication getPasswordAuthentication() {
return new PasswordAuthentication(账号, new String(密码).toCharArray());
}
});
// 支持https
System.setProperty("https.proxySet", "true");
System.getProperties().put("https.proxyHost", IP);
System.getProperties().put("https.proxyPort", 端口);
// 支持http
System.setProperty("http.proxySet", "true");
System.getProperties().put("http.proxyHost", IP);
System.getProperties().put("http.proxyPort", 端口);