2020
09-29
09-29
Java调用新浪api通过Ip查询地区
代码如下importjava.io.BufferedReader;importjava.io.InputStream;importjava.io.InputStreamReader;importjava.net.HttpURLConnection;importjava.net.URL;importjavax.servlet.http.HttpServletRequest;publicclasssinaIpUtil{publicstaticvoidmain(String[]args){Stringip="223.104.145.001";String[]areaArr=getAreaInfoList(ip);for(inti=0;i<areaArr.length;i++){Sys...
继续阅读 >