JDK8中LocalDateTime出现ava 8 date/time type `java.time.LocalDate` not supported by default: 解决方法
解决:com.fasterxml.jackson.databind.exc.InvalidDefinitionException: Java 8 date/time type java.time.LocalDate
not supported by default: add Module “com.fasterxml.jackson.datatype:jackson-datatype-jsr310” to enable handling
ObjectMapper mapper = new ObjectMapper();
mapper.registerModule(new ParameterNamesModule())
.registerModule(new Jdk8Module())
.registerModule(new JavaTimeModule());
System.out.println(mapper.writeValueAsString(testVos));