|
@@ -1,9 +1,8 @@
|
|
|
package com.fdkankan.gateway.filter;
|
|
|
|
|
|
import cn.hutool.core.util.StrUtil;
|
|
|
-import com.fdkankan.gateway.util.WebUtil;
|
|
|
import com.fdkankan.gateway.log.GatewayLog;
|
|
|
-import com.sun.deploy.util.StringUtils;
|
|
|
+import com.fdkankan.gateway.util.WebUtil;
|
|
|
import lombok.extern.slf4j.Slf4j;
|
|
|
import org.reactivestreams.Publisher;
|
|
|
import org.springframework.beans.factory.annotation.Autowired;
|
|
@@ -92,7 +91,7 @@ public class AccessLogFilter implements GlobalFilter, Ordered {
|
|
|
StringBuilder builder = new StringBuilder();
|
|
|
MultiValueMap<String, String> queryParams = exchange.getRequest().getQueryParams();
|
|
|
for (Map.Entry<String, List<String>> entry : queryParams.entrySet()) {
|
|
|
- builder.append(entry.getKey()).append("=").append(StringUtils.join(entry.getValue(), ","));
|
|
|
+ builder.append(entry.getKey()).append("=").append(StrUtil.join(",", entry.getValue()));
|
|
|
}
|
|
|
accessLog.setRequestBody(builder.toString());
|
|
|
|