使用以下代码,serviceIdSegment
is null
while serviceId
is not null
。
class MySubResource {
@GET
@Path("{serviceId: .+}")
public Response readById(@PathParam String serviceId) {
// serviceId is not null
// why serviceIdSegment is null?
}
@PathParam("serviceId");
private PathSegment serviceIdSegment;
}
谁能告诉我为什么?