springboot-Date日期时间问题
spring.mvc.date-format=yyyy-MM-dd
spring.jackson.date-format=yyyy-MM-dd
spring.jackson.time-zone=GMT+8
@Data
public class User {
private Integer id;
private Date birthday;
}
@GetMapping("/test")
public User test(User user){
return user;
}
访问: localhost:8080?id=1&birthday=2013-09-23