增加sendGet无参请求方法

This commit is contained in:
RuoYi 2021-11-10 11:20:15 +08:00
parent bcb93889cd
commit fbabb64dcb

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