Spring Boot - Request and Response Handling
Why does this code throw an exception?
Given User class:
ObjectMapper mapper = new ObjectMapper();
String json = "{\"name\":\"Eve\", \"age\":28}";
User user = mapper.readValue(json, User.class);
Given User class:
public class User {
private String name;
private int age;
}