String url = "http://localhost:8082/p2/refreshExecutor";
java.net.URL initStaticPageUrl = new java.net.URL(url);
java.net.HttpURLConnection httpConnection = (java.net.HttpURLConnection) initStaticPageUrl.openConnection();
System.out.println(httpConnection.getResponseCode());
java URL调用
最新推荐文章于 2023-03-21 14:53:12 发布