def main(args: Array[String]) { System.setProperty("http.proxyHost","proxy") System.setProperty("http.proxyPort","8080") Authenticator.setDefault(new Authenticator() { def PasswordAuthentication(user: String, pass: Array[Char]) = { new PasswordAuthentication("username","password".toCharArray()) } }) }
scala sets http proxy
最新推荐文章于 2025-07-17 09:21:12 发布