Message body writer error while doing POST operation with JSON payload using Jersey Client
问题 e I am trying to do a POST operation with JSON payload for REST service using Jersey Client in JUnit . Here is what I have done: Resource Class @Path("/Users") @Component public class UserResource{ @POST @Path("register") @Consumes({MediaType.APPLICATION_JSON}) @Produces(MediaType.APPLICATION_JSON) public String registerUser(RegisterRequestJSON requestJson) { User user = userManager.getUserInformationByEmail(email); UserInfoJSON userInfoJSON = new UserInfoJSON(); userInfoJSON.copyFromUserBean