You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on May 30, 2022. It is now read-only.
public class DubboValidationFilter implements Filter{ @OverRide
public Result invoke(Invoker<?> arg0, Invocation arg1) throws RpcException { System.out.println("==================dubbo=========dubbo==========");
return arg0.invoke(arg1);
}
}
在sofaboot项目中发布dubbo协议,实现dubbo的filter接口不生效,而且dubbo与bolt使用不同的过滤器,对于开发人员来说要维护多份代码,很不方便。目前也不支持参数校验,有些麻烦。
1、可不可以实现一个统一的过滤器,对于多种协议同时有效
2、希望在后期版本能支持参数校验。
sofaboot:3.1.3
以下是使用dubbo未生效的代码
import com.alibaba.dubbo.rpc.Filter;
import com.alibaba.dubbo.rpc.Invocation;
import com.alibaba.dubbo.rpc.Invoker;
import com.alibaba.dubbo.rpc.Result;
import com.alibaba.dubbo.rpc.RpcException;
public class DubboValidationFilter implements Filter{
@OverRide
public Result invoke(Invoker<?> arg0, Invocation arg1) throws RpcException { System.out.println("==================dubbo=========dubbo==========");
return arg0.invoke(arg1);
}
}
=========================================================
xml配置
The text was updated successfully, but these errors were encountered: