<dependency>
   <groupId>com.fasterxml.jackson.datatype</groupId>
   <artifactId>jackson-datatype-jsr310</artifactId>
   <version>2.8.8</version>
</dependency>
String json = "{\"name\":\"小民\",\"age\":20,\"birthday\":\"2017-06-01\",\"email\":\"xiaomin@sina.com\"}";
//其中 birthday是LocalData类型
/**
 * ObjectMapper支持从byte[]、File、InputStream、字符串等数据的JSON反序列化。
 */
ObjectMapper mapper = new ObjectMapper();
mapper.registerModule(new JSR310Module());
User user = mapper.readValue(json, User.class);
System.out.println(user);