标签:
@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; }
标签:
原文地址:http://www.cnblogs.com/IcanFixIt/p/5117379.html