I’m using JAX-RS in my project.
And i have a resource class.
@Path("/{path:hey|hi}")
public class MyAppResource {
@Path("/all")
public Response getAll() {return response;}
}
Using this,
myapp.com/hey/all
and
myapp.com/hi/all
both works. But
@Path("/v0/{path:hey|hi}")
public class MyAppResource {
@Path("/all")
public Response getAll() {return response;}
}
Now,
myapp.com/v0/hey/all
fails and
myapp.com/v0/hi/all
works. Why is this happening and how can i fix it