保存进度!
This commit is contained in:
		@@ -2,25 +2,44 @@
 | 
			
		||||
 * @Author: Kane
 | 
			
		||||
 * @Date: 2022-04-22 09:54:05
 | 
			
		||||
 * @LastEditors: Kane
 | 
			
		||||
 * @LastEditTime: 2022-04-22 10:32:28
 | 
			
		||||
 * @LastEditTime: 2022-04-22 10:46:26
 | 
			
		||||
 * @FilePath: \DisasterWarning\src\main\java\com\cpic\xim\httpUtil\HttpUtils.java
 | 
			
		||||
 * @Description: 
 | 
			
		||||
 * 
 | 
			
		||||
 * @Description: http相关的工具类。
 | 
			
		||||
 * Copyright (c) ${2022} by Kane, All Rights Reserved. 
 | 
			
		||||
 */
 | 
			
		||||
 | 
			
		||||
package com.cpic.xim.httpUtil;
 | 
			
		||||
 | 
			
		||||
import java.util.Map;
 | 
			
		||||
import java.net.URL;
 | 
			
		||||
import java.net.HttpURLConnection;
 | 
			
		||||
import java.net.MalformedURLException;
 | 
			
		||||
import java.nio.charset.StandardCharsets;
 | 
			
		||||
 | 
			
		||||
/**
 | 
			
		||||
 * 
 | 
			
		||||
 * Http相关的工具类。
 | 
			
		||||
 */
 | 
			
		||||
public class HttpUtils
 | 
			
		||||
{
 | 
			
		||||
    /**
 | 
			
		||||
     * 
 | 
			
		||||
     * @param url
 | 
			
		||||
     * @param headers
 | 
			
		||||
     * @param params
 | 
			
		||||
     */
 | 
			
		||||
    public void postHttpRequest( String url, Map<String, String> headers,
 | 
			
		||||
            Map<String, String> params )
 | 
			
		||||
            Map<String, String> params ) throws MalformedURLException
 | 
			
		||||
    {
 | 
			
		||||
        URL httpURL = null;
 | 
			
		||||
 | 
			
		||||
        try
 | 
			
		||||
        {
 | 
			
		||||
            httpURL = new URL( url );
 | 
			
		||||
        }
 | 
			
		||||
        catch (MalformedURLException error)
 | 
			
		||||
        {
 | 
			
		||||
 | 
			
		||||
        }
 | 
			
		||||
 | 
			
		||||
    }
 | 
			
		||||
}
 | 
			
		||||
 
 | 
			
		||||
@@ -8,7 +8,6 @@ import com.fasterxml.jackson.databind.ObjectMapper;
 | 
			
		||||
 | 
			
		||||
import java.io.*;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
import java.net.URL;
 | 
			
		||||
import java.net.HttpURLConnection;
 | 
			
		||||
import java.nio.charset.StandardCharsets;
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user