1、日志对象的创建方式
public static final Logger log =Logger.getLogger(需要产生日志文件的class对象);
2、httpClient对象的创建方式
CloseableHttpClient httpclient = HttpClients.createDefault();
3、获取一个Http返回的对象
CloseableHttpResponse response = httpClient.execute(get);
1、日志对象的创建方式
public static final Logger log =Logger.getLogger(需要产生日志文件的class对象);
2、httpClient对象的创建方式
CloseableHttpClient httpclient = HttpClients.createDefault();
3、获取一个Http返回的对象
CloseableHttpResponse response = httpClient.execute(get);