Commit 19e2e907 authored by 张永's avatar 张永

1

parent aef543c9
...@@ -48,14 +48,14 @@ public class OpenInterceptor extends HandlerInterceptorAdapter { ...@@ -48,14 +48,14 @@ public class OpenInterceptor extends HandlerInterceptorAdapter {
//设置一个requetId //设置一个requetId
String traceId = req.getHeader(LogBackUtil.TRACE_ID); String traceId = req.getHeader(LogBackUtil.TRACE_ID);
if(!StringUtil.isNotBlank(traceId)) { if(!StringUtil.isNotBlank(traceId)) {
traceId = StringUtil.getId(31,"S"); traceId = StringUtil.getId(32,"S");
} }
LogBackUtil.setTraceId(traceId); LogBackUtil.setTraceId(traceId);
resp.setHeader(LogBackUtil.TRACE_ID, traceId); resp.setHeader(LogBackUtil.TRACE_ID, traceId);
Map<String, String[]> paramMap = req.getParameterMap(); Map<String, String[]> paramMap = req.getParameterMap();
logger.info(uri); logger.info("--------OpenInterceptor-----获取到的请求参数:"+uri+"---"+traceId);
logger.info(GsonUtil.toJson(paramMap)); logger.info(GsonUtil.toJson(paramMap));
String sign = req.getParameter("sign"); String sign = req.getParameter("sign");
String timestamp = req.getParameter("timestamp"); String timestamp = req.getParameter("timestamp");
......
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