mirror of
https://gitee.com/huangge1199_admin/vue-pro.git
synced 2024-11-29 18:51:53 +08:00
【优化】增强访问日志,支持是否记录、脱敏、操作信息等功能
This commit is contained in:
parent
132c1cc828
commit
22a170ee62
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user