Why writer for media type application/json missing

前端 未结 3 1015
无人共我
无人共我 2021-01-14 04:07

Basically I have a restful service (post) that consumes(application/json) and produces (application/json). The single param for this service is an

3条回答
  •  我在风中等你
    2021-01-14 04:42

    Add below to the Resource class or the method causing the exception

    @Consumes(MediaType.APPLICATION_JSON)
    @Produces(MediaType.APPLICATION_JSON)
    

提交回复
热议问题