let list =[{start:"2022-02-02 00:00:00",end:"2022-02-03 00:00:00"},{start:"2022-02-02 00:00:00",end:"2022-02-03 00:00:00"}]let timeListStr =JSON.stringify(list);
后端参数结构(后端结构前端不用关心!!!!)
@Datapublicclass test {@DateTimeFormat(pattern ="yyyy-MM-dd HH:mm:ss")privateLocalDateTime start;@DateTimeFormat(pattern ="yyyy-MM-dd HH:mm:ss")privateLocalDateTime end;}