HttpUtils.sendPost()方法,参数无需拼接参数到url

pull/171/head
RuoYi 2020-06-18 10:36:24 +08:00
parent e4919f1a62
commit 92d7c18879
1 changed files with 1 additions and 1 deletions

View File

@ -118,7 +118,7 @@ public class HttpUtils
StringBuilder result = new StringBuilder();
try
{
String urlNameString = url + "?" + param;
String urlNameString = url;
log.info("sendPost - {}", urlNameString);
URL realUrl = new URL(urlNameString);
URLConnection conn = realUrl.openConnection();