标签:
java 代理设置
System.setProperty("http.proxyHost", "127.0.0.1"); System.setProperty("http.proxyPort", "3306");
java 获取进程ID
String name = ManagementFactoryHelper.getRuntimeMXBean().getName(); System.out.println(name); // get pid String pid = name.split("@")[0]; System.out.println("Pid is:"+pid);
标签:
原文地址:http://www.cnblogs.com/feelgood/p/4882888.html