MessageBodyWriter not found for media type=application/json

后端 未结 10 1643
庸人自扰
庸人自扰 2020-11-30 02:13

I am facing issues while consuming JAX-RS services as JSON.

Below I have added my code.

This is my service class:

//Sets the path to base URL         


        
10条回答
  •  误落风尘
    2020-11-30 02:40

    Below should be in your pom.xml above other jersy/jackson dependencies. In my case it as below jersy-client dep-cy and i got MessageBodyWriter not found for media type=application/json.

    
      org.glassfish.jersey.media
      jersey-media-json-jackson
      2.25
    
    

提交回复
热议问题