请问什么时候可以支持超过10M的包大小,以及什么时候会发新版本
个人感觉Java项目没有其他语言投入多,感谢支持。
可配置的包功能 会在2.0的版本中可供使用。但是不会放到1.7的版本中。
自己重写TarsCodec去掉包大小限制
自己重写TarsCodec去掉包大小限制
需要fork一个tarsjava版本
不需要,自己重写TarsCodec,然后在servant的注解上使用自己的codec就可以了
还有prx的注解
限制是在TarsCodec里的encodeRequest方法里
非常感谢 @tangj1992 ,我这边试试
@tangj1992 你好,请问TarsServantRequest中的init方法也写死了TarsCodec 咋办,如果我把TarsServantRequest和TarsServantResponse也重写的话,又过不了TarsClientFilterChain
@tangj1992 你好,请问TarsServantRequest中的init方法也写死了TarsCodec 咋办,如果我把TarsServantRequest和TarsServantResponse也重写的话,又过不了TarsClientFilterChain
我看到TarsServantRequest里用的是TarsCodec里的decodeResquestBody,没有用到decodeRequest啊。如果会用到decodeRequest,那就没法了。
@tangj1992 你好,请问TarsServantRequest中的init方法也写死了TarsCodec 咋办,如果我把TarsServantRequest和TarsServantResponse也重写的话,又过不了TarsClientFilterChain
我看到TarsServantRequest里用的是TarsCodec里的decodeResquestBody,没有用到decodeRequest啊。如果会用到decodeRequest,那就没法了。
((TarsCodec) this.session.getProtocolFactory().getDecoder()).decodeRequestBody(this); 执行到这里会提示我重写的类没办法又转换回TarsCodec
@tangj1992 你好,请问TarsServantRequest中的init方法也写死了TarsCodec 咋办,如果我把TarsServantRequest和TarsServantResponse也重写的话,又过不了TarsClientFilterChain
我看到TarsServantRequest里用的是TarsCodec里的decodeResquestBody,没有用到decodeRequest啊。如果会用到decodeRequest,那就没法了。
((TarsCodec) this.session.getProtocolFactory().getDecoder()).decodeRequestBody(this); 执行到这里会提示我重写的类没办法又转换回TarsCodec
子类不能转成父类?你是不是没继承TarsCodec?
@tangj1992 你好,请问TarsServantRequest中的init方法也写死了TarsCodec 咋办,如果我把TarsServantRequest和TarsServantResponse也重写的话,又过不了TarsClientFilterChain
我看到TarsServantRequest里用的是TarsCodec里的decodeResquestBody,没有用到decodeRequest啊。如果会用到decodeRequest,那就没法了。
((TarsCodec) this.session.getProtocolFactory().getDecoder()).decodeRequestBody(this); 执行到这里会提示我重写的类没办法又转换回TarsCodec
子类不能转成父类?你是不是没继承TarsCodec?
非常感谢,问题已解决,我写成继承Codec了