使用以下代码,serviceIdSegmentis nullwhile serviceIdis 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;
}
谁能告诉我为什么?