问题描述
我目前有一个类似于 this 的问题,但在 quarkus-resteasy 中。我环顾四周,但找不到排序路径的方法。永远不会选择 getAllNotifications()
的端点,所有请求都转到 getModel()
:
@Get
@Path("/cars/{brand}/{model}")
@Produces(MediaType.APPLICATION_JSON)
public Response getModel(@PathParam("brand") String brand,@PathParam("model") String model) {
...
}
@Get
@Path("/cars/notification/all")
@Produces(MediaType.APPLICATION_JSON)
public Response getAllNotifications() {
...
}
有没有办法像以前那样优先处理端点 1 或端点 2 here
解决方法
暂无找到可以解决该程序问题的有效方法,小编努力寻找整理中!
如果你已经找到好的解决方法,欢迎将解决方案带上本链接一起发送给小编。
小编邮箱:dio#foxmail.com (将#修改为@)