liubao68 edited a comment on issue #2243: URL: https://github.com/apache/servicecomb-java-chassis/issues/2243#issuecomment-782584588
java chassis 不推荐使用 JSONObject 作为请求参数,因为这个等价于没有指定具体类型的 Map, 而 java chassis 要求接口定义的类型都是具体的可描述类型。 不推荐类型的处理过程可能不符合预期。 详细类型支持说明参考: https://docs.servicecomb.io/java-chassis/zh_CN/build-provider/interface-constraints/ 另外, java chassis的RPC本质也是REST, 参数列表会作为一个包装类型(详细参考代码生成的swagger,可以在日志和注册中心查询到), 即{requestBodeyJSON: {contents}}。 这样就可能导致你看到的结果。 JSONObject 和内部的swagger映射之间,会存在语义的二义性, 因此产生了和通常RPC不一样的结果。 ---------------------------------------------------------------- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. For queries about this service, please contact Infrastructure at: [email protected]
