次のコードでは、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;
}
理由を教えてください。