I wanted to write a very simple client which will access my public git profile and will display it a webpage.
`
final Client client = ClientBuilder.newClient();
WebTarget webTarget = client.target( URI.create(
"https://api.github.com/users/mmahawar"));
Response response = webTarget.request(MediaType.APPLICATION_JSON).get();
if (response.getStatus() == 200) {
JSONObject readEntity = response.readEntity(JSONObject.class);
return readEntity;
}
When I am running the about code i am getting "No message body reader has been found for class" error.. I have not configured cxf or jettison in my spring application context file. ` Since it's just a simple client do i need them?