Skip to content

Commit

Permalink
RequestLogHelper 日志 paramString null显示成empty fix #662
Browse files Browse the repository at this point in the history
  • Loading branch information
venusdrogon committed Dec 1, 2023
1 parent efe62e2 commit fbd67c7
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@
import static com.feilong.core.Validator.isNullOrEmpty;
import static com.feilong.core.bean.ConvertUtil.toInteger;
import static com.feilong.core.bean.ConvertUtil.toLong;
import static com.feilong.core.lang.ObjectUtil.defaultEmptyStringIfNull;
import static com.feilong.core.lang.ObjectUtil.defaultIfNullOrEmpty;
import static com.feilong.core.lang.StringUtil.EMPTY;
import static com.feilong.core.lang.StringUtil.tokenizeToStringArray;
Expand Down Expand Up @@ -802,7 +803,10 @@ public static String parseParamsToQueryString(HttpServletRequest request){
//This method returns null if the URL does not have a query string.<br>
// Same as the value of the CGI variable QUERY_STRING.<br>
// 它只对get方法得到的数据有效.
return request.getQueryString();

//a <code>String</code> containing the query string or <code>null</code> if the URL contains no query string.
//The value is not decoded by the container.
return defaultEmptyStringIfNull(request.getQueryString());
}
//---------------------------------------------------------------
Map<String, String[]> map = getParameterMap(request);
Expand Down

0 comments on commit fbd67c7

Please sign in to comment.