摘要: 一、启动类 启动类添加注解 @EnableScheduling 二、创建定时任务类 package com.wt.lease.web.admin.schedule; import org.springframework.scheduling.annotation.Scheduled; import 阅读全文
posted @ 2025-05-14 21:37 市丸银 阅读(27) 评论(0) 推荐(0)
摘要: 一、时间 1、注解(推荐) @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss") private Date appointmentTime; 2、yaml spring: jackson: date-format: yyyy-MM-dd HH:mm:ss 二、时区 阅读全文
posted @ 2025-05-14 19:24 市丸银 阅读(129) 评论(0) 推荐(0)