【发布时间】:2010-11-06 09:08:24
【问题描述】:
考虑上面的代码
@Path("a")
@Produces("text/plain")
public class A {
@GET
@Path("a")
public String getA() {
return "a";
}
@GET
@Path("a")
public String getB() {
return "b";
}
}
请求http://host/a/a 我总是得到“b”。
选择合适方法的策略是什么? 有什么方法可以了解不同资源的多条路径?
【问题讨论】: