我正在使用JAX-RS在java中实现一个restful服务,在测试该服务时,它只适用于我的一个方法,当我添加一个带有不同@PATH注释的新方法时,测试网页将是空白的,没有错误@Path(“啤酒”)公共类BeerResources {private UriInfo context;
* Creates a new instance of BeerResourcespublic BeerResources() {@Path("/costliest")
@Produces(MediaType.TEXT_PLA