【发布时间】:2014-05-13 19:16:26
【问题描述】:
@Path("/assetViewCount/{path}")
上面的注释可用于将 myValue 检索到 path 中,以获取像 /assetViewCount/myValue 这样的 url。
如何从路径中的 /assetViewCount/myValue/nextValue 获取 myValue/nextValue
【问题讨论】:
-
你能提供一些真实的例子吗?您是否试图找到返回 2 个不同
things的assetViewCount。这两个值之间是否存在某种关系? -
不是两个不同的东西,基本上这个 ${path} 可以是类似 myFolder/subFolder/myFile.ext 的文件路径
标签: java rest jersey jersey-2.0 path-parameter