If I understand your question correctly, the @Path
annotation can take a regular expression to specify a list of path components. For example, something like:
@GET
@Path("/list/{taskid:.+}")
public String getTaskCheckLists(@PathParam("taskid") List<PathSegment> taskIdList) {
......
}
There's a more extensive example here.
与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…