Commit af9cf44c authored by 黎博's avatar 黎博

新增debug日志

parent 9578e628
......@@ -11,6 +11,7 @@ import com.alibaba.fastjson.JSON;
import com.alibaba.fastjson.JSONArray;
import com.alibaba.fastjson.JSONObject;
import com.baomidou.mybatisplus.core.conditions.query.QueryWrapper;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.lang.Nullable;
import org.springframework.web.servlet.HandlerInterceptor;
......@@ -25,6 +26,7 @@ import java.util.*;
import static cn.qg.holmes.interceptor.InterceptorUtils.*;
@Slf4j
public class XinchengInterceptor implements HandlerInterceptor {
@Autowired
......@@ -110,7 +112,9 @@ public class XinchengInterceptor implements HandlerInterceptor {
requestData.append(str);
}
br.close();
Map<String, String> paramsMap = JSON.parseObject(String.valueOf(requestData), Map.class);
log.info("获取到的请求参数为:{}", requestData);
Map<String, String> paramsMap = JSON.parseObject(requestData.toString(), Map.class);
log.info("转换成Map:{}", paramsMap);
return paramsMap;
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment