@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; }