pom文件增加依赖:
<dependency> <groupId>com.fasterxml.jackson.datatype</groupId> <artifactId>jackson-datatype-jsr310</artifactId></dependency>application.properties增加
spring.jackson.serialization.write_dates_as_timestamps=false