JAX-RS NoMessageBodyWriterFoundFailure

后端 未结 2 561
余生分开走
余生分开走 2021-01-25 06:24

the method of my jax-rs application:

@GET
@Produces (MediaType.APPLICATION_JSON)
public List  getDocumentList(@HeaderParam(\"Range\") String head         


        
2条回答
  •  孤城傲影
    2021-01-25 06:41

    You're missing a library as described here:

    Here is the solution

    This means that you are missing a JSON library in your classpath. Jackson is one I’m using so adding this to your pom.xml will help:

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

提交回复
热议问题