Errors$ErrorMessagesException when using Jersey in Java

后端 未结 4 779
悲哀的现实
悲哀的现实 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:34

    Your question seems to be a duplicate and has probably been appropriately addressed. I too had the same issue some time ago. Click here to see the accepted answer that resolved it for me

    And in case you're reluctant to follow the link, first of all, try adding jersey-multipart.jar and mimepull.jar to your project libraries... And if your project is a Maven project, add the following dependencies to your pom.xml. The mimepull dependency should ship along with it.

    
        com.sun.jersey.contribs
        jersey-multipart
        1.8
    
    

    Remember to ensure that the version of jersey-multipart that you use, is the same as the version of jersey that you're using in the project.

    Just in case the above solution doesn't resolve your issue, you may want to see here for more useful tips too. Cheers!

提交回复
热议问题