Commit 1cb15bd2 authored by Quxl's avatar Quxl

c

parent 875a9920
......@@ -22,6 +22,9 @@ public class LogInterceptor extends HandlerInterceptorAdapter {
@Value("${log.isOpen}")
private Boolean isOpen;
@Value("${log.sProjectID:SHOP}")
private Boolean sProjectID;
@Override
public boolean preHandle(HttpServletRequest req, HttpServletResponse resp, Object handler) throws Exception {
......@@ -41,7 +44,7 @@ public class LogInterceptor extends HandlerInterceptorAdapter {
String remoteIp = ServletUtil.remoteIp(req);
String params = JSON.toJSONString(req.getParameterMap());
Map<String, Object> map = new HashMap<String,Object>();
map.put("sProjectID", "SHOP");
map.put("sProjectID", sProjectID);
map.put("sURI", uri);
map.put("sClientIP", remoteIp);
map.put("sParams", params);
......
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