Skip to content

Commit

Permalink
增加sendGet无参请求方法
Browse files Browse the repository at this point in the history
  • Loading branch information
yangzongzhuan committed Nov 9, 2021
1 parent 16248b6 commit 618b81b
Showing 1 changed file with 11 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,17 @@ public class HttpUtils
{
private static final Logger log = LoggerFactory.getLogger(HttpUtils.class);

/**
* 向指定 URL 发送GET方法的请求
*
* @param url 发送请求的 URL
* @return 所代表远程资源的响应结果
*/
public static String sendGet(String url)
{
return sendGet(url, StringUtils.EMPTY);
}

/**
* 向指定 URL 发送GET方法的请求
*
Expand Down

0 comments on commit 618b81b

Please sign in to comment.