休息路径问题

我有一些代码作为休息资源:
@GET
@Produces ( { "application/json" } )
@Path ("/some/{some}")
public JSONObject retrieveSome(@PathParam("some") final String some) {
    //body of the method
}
@Path ("/some/{some}")
是什么意思?     
已邀请:
@Path
注释创建一个排序的URI模板。
{some}
部分给出资源路径的该部分的名称。因此,如果URI为
/some/1234
,则将调用
retrieveSome
并将
some
参数设置为
1234
。因此
@Path
注释创建模板,
@PathParam
注释提取模板的命名部分。阅读@Path Annotation和URI Path Templates以获取更多详细信息。     

要回复问题请先登录注册