![](https://img-blog.csdnimg.cn/20201014180756926.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Springboot学习笔记
wishxiaozhu
这个作者很懒,什么都没留下…
展开
-
Springboot学习笔记2——日期转换
1、日期格式java.util.Date日期格式为:年月日时分秒 java.sql.Date日期格式为:年月日java.sql.Time日期格式为:时分秒 java.sql.Timestamp日期格式为:年月日时分秒毫秒(微秒、纳秒)2、Date格式//获取当前时间//Date类型日期格式:Fri Apr 08 21:18:35 CST 2020Date now = new Date();//获取11天前的Date格式时间Date startDate = DateUti.原创 2020-05-11 15:48:19 · 569 阅读 · 0 评论 -
Springboot学习笔记1——定时任务
1、开启支持,为启动类添加注解@SpringBootApplication@EnableSchedulingpublic class Application{ public static void mian(String[] args){ SpringApplication.run(Application.class,args); }}2、定时任务类型2.1 固定周期执行//表示 每隔 5000 毫秒执行一次@Scheduled(fixe..原创 2020-05-11 14:41:51 · 138 阅读 · 0 评论