FluentHttpUtils

我:

(1)下载maven包:

        
        
            org.apache.commons
            commons-lang3
            3.5
        

        
            org.apache.httpcomponents
            fluent-hc
            4.5.3
        

(2)工具类:

package utils;

import com.alibaba.fastjson.JSON;
import org.apache.http.client.fluent.Request;
import org.apache.http.client.fluent.Response;
import org.apache.http.message.BasicNameValuePair;

import java.io.File;
import java.nio.charset.Charset;
import java.util.List;
import java.util.Map;


public class Flue

你可能感兴趣的:(javaee)