pull/3/head
tanghc 4 years ago
parent e163dbc2a8
commit 4456d15182
  1. 2
      sop-gateway/src/main/java/com/gitee/sop/gateway/interceptor/MyRouteInterceptor.java

@ -17,7 +17,7 @@ public class MyRouteInterceptor implements RouteInterceptor {
@Override @Override
public void preRoute(RouteInterceptorContext context) { public void preRoute(RouteInterceptorContext context) {
ApiParam apiParam = context.getApiParam(); ApiParam apiParam = context.getApiParam();
System.out.println("请求接口:" + apiParam.fetchNameVersion()); System.out.println(String.format("请求接口:%s, ip:%s", apiParam.fetchNameVersion(), apiParam.fetchIp()));
} }
@Override @Override

Loading…
Cancel
Save