0
@GET
@Produces(MediaType.APPLICATION_JSON)
@Consumes(MediaType.APPLICATION_JSON)
@Path("/categories")
public Response getAllCategories(@QueryParam(value = "code") String country_code) {
return userService.getAllCategories(country_code);
}
提取参数我的URL: “?/用户/类别代码= + 91”如何从@QueryParam
我怎样才能在RESTful网络服务请求中提取参数 “91”。
代码中没有什么Spring相关的,为什么它被标记为spring和spring-mvc? –
尝试删除括号中的值。正如'@QueryParam(“code”)' –
@YoungMillie value =“code”完全等于只写“code”。 –