404 when a path of request matches with multiple resource classes
Resource classes should have unique pathes as much as possible to get around the issue of request matching. If it’s difficult to cleanly separate resource classes, sub resource should be used.
- Matching Requests to Resource Methods – Fails to match some straightforward case
- Jakarta RESTful Web Services Specification - request matching