From e5786973d730c6e7b1b2f3468b74afb4a444f75d Mon Sep 17 00:00:00 2001 From: "weilong.hu" Date: Mon, 11 Jan 2021 14:34:07 +0800 Subject: [PATCH] =?UTF-8?q?1.=20=E5=8D=95=E5=85=83=E6=B5=8B=E8=AF=95interc?= =?UTF-8?q?eptor=E8=B0=83=E6=95=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../io/manbang/ebatis/sample/interceptor/TestInterceptor.java | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/ebatis-sample/src/test/java/io/manbang/ebatis/sample/interceptor/TestInterceptor.java b/ebatis-sample/src/test/java/io/manbang/ebatis/sample/interceptor/TestInterceptor.java index 49c611f..37f777e 100644 --- a/ebatis-sample/src/test/java/io/manbang/ebatis/sample/interceptor/TestInterceptor.java +++ b/ebatis-sample/src/test/java/io/manbang/ebatis/sample/interceptor/TestInterceptor.java @@ -1,11 +1,13 @@ package io.manbang.ebatis.sample.interceptor; import com.google.auto.service.AutoService; +import io.manbang.ebatis.core.cluster.Cluster; import io.manbang.ebatis.core.domain.ContextHolder; import io.manbang.ebatis.core.interceptor.Interceptor; import io.manbang.ebatis.core.interceptor.PostResponseInfo; import io.manbang.ebatis.core.interceptor.PreResponseInfo; import io.manbang.ebatis.core.interceptor.RequestInfo; +import io.manbang.ebatis.core.meta.MethodMeta; import lombok.extern.slf4j.Slf4j; import org.elasticsearch.action.ActionRequest; import org.elasticsearch.action.ActionResponse; @@ -31,7 +33,7 @@ public void handleException(Throwable throwable) { } @Override - public void preRequest(Object[] args) { + public void preRequest(Object[] args, Cluster cluster, MethodMeta meta) { log.info("preRequest", args); log.error("preRequest userId{}", ContextHolder.getString("userId"));