【发布时间】:2016-07-19 06:53:09
【问题描述】:
使用以下代码,serviceIdSegment 是 null 而 serviceId 不是 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;
}
谁能告诉我为什么?
【问题讨论】:
标签: jax-rs path-parameter