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