Answers for "use pathparam JAX-RS restful webservices"

0

use pathparam JAX-RS restful webservices

@Path("/users/{username}")
public class UserResource {

    @GET
    @Produces("text/xml")
    public String getUser(@PathParam("username") String userName) {
        ...
    }
}
Posted by: Guest on April-23-2021

Browse Popular Code Answers by Language