Errors$ErrorMessagesException when using Jersey in Java

后端 未结 4 781
悲哀的现实
悲哀的现实 2021-01-18 17:05

I am using Jersy to develeop REST webservices, this is my simple code:

@GET
@Path(\"/retrieveCustomerInformation/{jsonString}\")
@Produces(MediaType.APPLICAT         


        
4条回答
  •  悲&欢浪女
    2021-01-18 17:59

    Check for clashing @Path annotations. This will result with the same error. It's a weird error for communicating path issues, but you can easily test it by renaming the matching paths.

    Example of cashing paths in the code below

    Some class

    @Path("/storage")
    public class BookingRestService {
    
    @GET
    @Path("/bookings")
    @Produces(value = MediaType.APPLICATION_XML)
    

    and another class

    @Path("/storage")
    public class StorageRestService {
    

    By renaming any of the @Path("/storage") the problem seizes to impair your work progress.

提交回复
热议问题