huanghezhen commented on issue #2665: URL: https://github.com/apache/servicecomb-java-chassis/issues/2665#issuecomment-996398289
场景是这样的 我们对接别人的接口的时候, 需要我们提供"一个"他们回调的地址 type类型就是 application/x-www-form-urlencoded ,这个地址是所有的业务的回调地址,所以会根据不同的业务带有不同的参数,并且这些参数 是需要验证签名的,所以 这个接口我们不好定义成对象 所以需要用 map 来接收 所以自然是想到了 这样定义 @RequestParam Map<String, String> param 但是 这样定义 项目是不能启动的 swagger 校验不通过, 我们就使用了 requestbody 结果发现这个可以 但是原生spring mvc 对于 requestbody 的定义 是用来解析 json的 所以 就想跟您确认一下 servicecomb 是否可以使用 requestbody 来接收 form 形式的参数 -- 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. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
