6/10/2023 0 Comments Conflicting uri templatesOne idea is to add a filter that "normalizes" your Accept header specifically for dispatch. There's nothing stopping you from having several methods based on media type that all call a common method to do that work, but you'd have to update that and add code every time you added a new media type. Without any extra work, you would have to create a method (and Provider) for every media type you wish to support. So, if you want JAX-RS to do your dispatching, you'll need to leverage this mechanism. JAX-RS dispatches to methods annotated with via the Accept header. When I try to add another resource called TestResource, and Tomcat starts, it gives me the following error below. I have 3 resources called RegionService, ClientService and NoteService defined in my campher.rest package. I have a restfull implementation using Jersey and Tomcat7.
0 Comments
Leave a Reply. |