【实用开发手册】Java网络请求(HttpClient之doGet请求、doPost请求两种方式)
导入依赖:publicclassHttpClientUtil{publicstaticStringdoGet(Stringurl,Mapparam){//创建Httpclient对象CloseableHttpClienthttpclient=HttpClients.createDefault();StringresultString="";CloseableHttpResponseresponse