What does this warning mean in Jersey 1.4:
WARNING: A sub-resource method, public final java.lang.String com.XXX.render(), with URI template, "/", is treated as a resource method
This is how the method looks:
@GET @Produces(MediaType.APPLICATION_XML) @Path("/") public final String render() { return "test"; }
Why do you need specify such path for method? @Get is enough to tell jersey that it is default method for entire class (I'm assuming that your class has some @Path("/MyRes") annotation).
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With