tiger-super commented on issue #2243: URL: https://github.com/apache/servicecomb-java-chassis/issues/2243#issuecomment-782595233
> java机箱不推荐使用JSONObject作为请求参数,因为这个等价于没有指定特定类型的地图,而java机箱则要求接口定义的类型都是具体的可描述类型。不推荐类型的处理过程可能不符合预期。类型支持说明参考:[https](https://docs.servicecomb.io/java-chassis/zh_CN/build-provider/interface-constraints/) : [//docs.servicecomb.io/java-chassis/zh_CN/build-provider/interface-constraints/](https://docs.servicecomb.io/java-chassis/zh_CN/build-provider/interface-constraints/) > > 另外,java framework的RPC本质也是REST,参数列表会作为一个包装类型(详细参考代码生成的swagger,可以在日志和注册中心查询到),即{requestBodeyJSON:{contents}}。这样就可能导致你看JSONObject和内部的swagger映射之间,会存在语义的二义性,因此产生了和通常RPC不一样的结果。  我刚刚改成String,但有序列化问题,这个怎么解决 ---------------------------------------------------------------- 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]
