MessageBodyReader not found for media type=application/json

后端 未结 8 1612
一生所求
一生所求 2020-12-15 17:10

I have wrote a JAX-RS server and client both use Jersey. I want to sent a collection of my entities to client and I made this steps:

  1. Made entity extends Serial
8条回答
  •  南方客
    南方客 (楼主)
    2020-12-15 17:39

    Sorry to resurrect this post, but I was having this problem with a Maven project and found that I needed to include a dependency for jackson-jaxrs-json-provider in my pom:

    
        com.fasterxml.jackson.jaxrs
        jackson-jaxrs-json-provider
        2.4.1
    
    

    MVN Repository: http://mvnrepository.com/artifact/com.fasterxml.jackson.jaxrs/jackson-jaxrs-json-provider

提交回复
热议问题