增加sendGet无参请求方法

This commit is contained in:
RuoYi 2021-11-10 11:13:27 +08:00
parent bbbe83b737
commit d185d4e4cc
1 changed files with 11 additions and 0 deletions

View File

@ -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方法的请求
*