GET方法, 取url请求参数
@ApiModelProperty(value = "筛选开始时间 如2020-03-27")
// @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date startDate;
@ApiModelProperty(value = "筛选结束时间 如2021-03-27")
// @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
@DateTimeFormat(pattern = "yyyy-MM-dd")
private Date endDate;
@Jsonformat + java.util.Date + serialization + deserialization
https://www.concretepage.com/jackson-api/jackson-jsonformat-example