摘要: Date to String new SimpleDateFormat("yyyy-MM-dd HH:mm:ss").format(startTime); Date to DateTime DateTime time = new DateTime(new Date()); Date to Strin 阅读全文
posted @ 2023-03-10 11:03 lambertlt 阅读(12) 评论(0) 推荐(0) 编辑
摘要: 一、添加注解 在实体类属性上加如下注解 // 后台返回数据到前端的数据格式 @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone="GMT+8") // 前台传递参数到后台的数据格式 @DateTimeFormat(pattern = "yyyy- 阅读全文
posted @ 2023-03-10 10:44 lambertlt 阅读(472) 评论(0) 推荐(0) 编辑