@GET @Path("/queryParam") public String getUser(@QueryParam("name") String name) { System.out.println("NameI: " + name); return name; } @GET @Path("/queryParam") public String getUser(@QueryParam("name") String name, @DefaultValue("15") @QueryParam("age") String age) { System.out.println("NameII: " + name); System.out.println("Age: " + age); return name; }
时间: 2024-10-11 03:26:06