【优化】增强访问日志,支持是否记录、脱敏、操作信息等功能

This commit is contained in:
YunaiV 2024-04-03 19:55:45 +08:00
parent ec9f983f73
commit f88c07af17

View File

@ -23,9 +23,9 @@ import java.util.Map;
@Slf4j @Slf4j
public class ApiAccessLogInterceptor implements HandlerInterceptor { public class ApiAccessLogInterceptor implements HandlerInterceptor {
public static String ATTRIBUTE_HANDLER_METHOD = "HANDLER_METHOD"; public static final String ATTRIBUTE_HANDLER_METHOD = "HANDLER_METHOD";
private static String ATTRIBUTE_STOP_WATCH = "ApiAccessLogInterceptor.StopWatch"; private static final String ATTRIBUTE_STOP_WATCH = "ApiAccessLogInterceptor.StopWatch";
@Override @Override
public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) { public boolean preHandle(HttpServletRequest request, HttpServletResponse response, Object handler) {