RESTEasy tries to ignore the trailing slash, so I cannot write two different web services with and without trailing slash, and this example shows:
@Path("foo") public class TestClass { @GET @Path("/bar") public Response bar1() { ... } @GET @Path("/bar/") public Response bar2() { ... } }
With RESTEasy, the GET request in / foo / bar as well as / foo / bar / is handled by bar2 (). Given the RFC3986 and JAX-RS Spec, I donβt understand why this is happening like this. Could this be a problem with RESTEasy or is there something I'm watching over?
source share