Unable to find a MessageBodyReader of content-type application/json and type class java.lang.String

前端 未结 8 658
野的像风
野的像风 2020-12-01 18:20

I am using RestEasy client with jackson providers and getting the above error

clientside code is:

ClientRequest request = new ClientRequest(url);
re         


        
8条回答
  •  無奈伤痛
    2020-12-01 18:48

    Client client = ClientBuilder.newBuilder().register(ResteasyJacksonProvider.class).build();
    

提交回复
热议问题