lundi 19 mars 2018

Resolve Jersey Resource with Root URL

How do you get Jersey to map the root URL to a resource (ie: mydoman.com)? I've tried various forms of @Path("/") or @Path("") but it only seems to work if the class-level @Path has some string defined.

@Path("/")
public class RootResource {

    @GET
    public Response root() {
        return Response.ok().build();
    }
}




Aucun commentaire:

Enregistrer un commentaire