You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@servicecomb.apache.org by GitBox <gi...@apache.org> on 2020/05/07 07:42:30 UTC

[GitHub] [servicecomb-java-chassis] zhufeizzz opened a new issue #1737: 出参入参不支持复杂对象?

zhufeizzz opened a new issue #1737:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1737


   仅一层子对象都无法支持,不知道这种限制的目的是什么?底层使用Jackson不是直接复用Jackson的能力就可以了吗?或者有什么办法能规避吗?
   
   ```
   Caused by: java.lang.IllegalStateException: not allow complex type for query parameter, type=com.huawei.mateinfo.schedule.timertask.api.dto.TaskKeyDto.
   	at org.apache.servicecomb.swagger.SwaggerUtils.setParameterType(SwaggerUtils.java:229) ~[swagger-generator-core-2.0.1.jar:2.0.1]
   ```


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] zhufeizzz commented on issue #1737: 出参入参不支持复杂对象?

Posted by GitBox <gi...@apache.org>.
zhufeizzz commented on issue #1737:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1737#issuecomment-625683004


   @RequestBody 加上即可,多谢


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] yhs0092 commented on issue #1737: 出参入参不支持复杂对象?

Posted by GitBox <gi...@apache.org>.
yhs0092 commented on issue #1737:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1737#issuecomment-625089734


   > not allow complex type for query parameter
   这里限制的是SpringMVC风格的query object 参数吧,不是body参数。body参数允许传递多层的复杂对象的。


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] zhufeizzz edited a comment on issue #1737: 出参入参不支持复杂对象?

Posted by GitBox <gi...@apache.org>.
zhufeizzz edited a comment on issue #1737:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1737#issuecomment-625683004


   `@RequestBody` 加上即可,多谢


----------------------------------------------------------------
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:
users@infra.apache.org



[GitHub] [servicecomb-java-chassis] liubao68 commented on issue #1737: 出参入参不支持复杂对象?

Posted by GitBox <gi...@apache.org>.
liubao68 commented on issue #1737:
URL: https://github.com/apache/servicecomb-java-chassis/issues/1737#issuecomment-625089605


   加上 `@RequestBody`, 缺省是 `@RequestParam`


----------------------------------------------------------------
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:
users@infra.apache.org