liubao68 commented on issue #2081:
URL:
https://github.com/apache/servicecomb-java-chassis/issues/2081#issuecomment-734162008
query 为 List 的情况有多种编码形式, 你需要的是那种?
```
@Path("queryArrCSV")
@GET
public String queryArrCSV(@ApiParam(collectionFormat = "csv")
@QueryParam("queryArr") String[] queryArr) {
return Arrays.toString(queryArr) + queryArr.length;
}
@Path("queryArrSSV")
@GET
public String queryArrSSV(@ApiParam(collectionFormat = "ssv")
@QueryParam("queryArr") String[] queryArr) {
return Arrays.toString(queryArr) + queryArr.length;
}
@Path("queryArrTSV")
@GET
public String queryArrTSV(@ApiParam(collectionFormat = "tsv")
@QueryParam("queryArr") String[] queryArr) {
return Arrays.toString(queryArr) + queryArr.length;
}
@Path("queryArrPIPES")
@GET
public String queryArrPIPES(@ApiParam(collectionFormat = "pipes")
@QueryParam("queryArr") String[] queryArr) {
return Arrays.toString(queryArr) + queryArr.length;
}
@Path("queryArrMULTI")
@GET
public String queryArrMULTI(@ApiParam(collectionFormat = "multi")
@QueryParam("queryArr") String[] queryArr) {
return Arrays.toString(queryArr) + queryArr.length;
}
```
----------------------------------------------------------------
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]