hypggg commented on issue #2130:
URL: 
https://github.com/apache/servicecomb-java-chassis/issues/2130#issuecomment-744416177


   > 如果是这个场景,在2.1.3版本中,我们是这样用的:
   > 
   > ```java
   > public class SomeAggrParam {
   >   @ApiParam(value = "query lists的描述")
   >   @QueryParam("query_lists")
   >   private List<String> queryLists;
   > 
   >   @ApiParam(value = "header name的描述")
   >   @HeaderParam("header_name")
   >   private String headerName;
   >   
   >   其他参数定义
   > 
   >   getter/setter
   > }
   > 
   > 
   > @RequestMapping(path = "......")
   > public class MyController {
   >   @GetMapping(path = "......")
   >   public String query(@BeanParam SomeAggrParam param) {
   >     return ......;
   >   }
   > }
   > ```
   > 
   > 这里使用的是jax-rs标准中的@BeanParam参数聚合特性
   > 在servicecomb最新版本中,无论是jax-rs,还是springmvc开发模式,均可使用这个特性
   
   问题解决,谢谢


----------------------------------------------------------------
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]


Reply via email to