线下版本维护

This commit is contained in:
songjinsheng
2022-08-23 15:39:06 +08:00
parent 873c24cae8
commit 45fbc8a501
31 changed files with 268 additions and 264 deletions

View File

@ -17,7 +17,7 @@ public class UrlFileUpload {
public static String fileUpload(String FileUrl,String FileNamePath) throws IOException, InterruptedException {
System.out.println("下载文件!");
// 创建一个URL链接
URL url = new URL(FileUrl);

View File

@ -74,10 +74,9 @@ public class WeatherUtils {
String strRead = null;
URL url = new URL(serverURL);
HttpURLConnection connection = (HttpURLConnection)url.openConnection();
connection.setRequestMethod("POST");//请求post方式
connection.setRequestMethod("POST");
connection.setDoInput(true);
connection.setDoOutput(true);
//header内的的参数在这里set。||connection.setRequestProperty("健, "值");
connection.setRequestProperty("Content-Type", "application/json");
connection.connect();
OutputStreamWriter writer = new OutputStreamWriter(connection.getOutputStream(),"UTF-8");