We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
你好,有个疑问RPC调用服务端方法参数传递的是一个java对象,那这个java对象参数是不是必须要在客户端和服务端必须存在并且包路径都必须相同
The text was updated successfully, but these errors were encountered:
说一下我个人的观点,咱们讨论一下。 首先这个Java对象应该是在客户端、服务端都存在的,因为在实际的生产环境中客户端通过代理,以调用本地方法的方式调用远程方法,那这个Java对象参数对于客户端来说是可见的。服务端是实现了这个方法,所以肯定也有这个对象。 但是两者使用的Java对象所对应的包路径未必是相同的,服务端调用方法是通过反射,根据方法名称和参数列表获得方法,所以要判断的是类型。 个人看法
Sorry, something went wrong.
一般都会把这写接口及其类对象以依赖的方式,引入到服务端和客户端
存在是都要存在的,但是路径不用一样,内容一样,保证可以反序列化就好了吧
No branches or pull requests
你好,有个疑问RPC调用服务端方法参数传递的是一个java对象,那这个java对象参数是不是必须要在客户端和服务端必须存在并且包路径都必须相同
The text was updated successfully, but these errors were encountered: