

















自定义starter


springboot的启动流程
-- -------------- 计时器--------------------------
public static void main(String[] args) throws InterruptedException {
StopWatch stopWatch = new StopWatch();
stopWatch.start();
Thread.sleep(3000);
stopWatch.stop();
System.out.println(stopWatch.getTotalTimeSeconds());
}

============================
https://www.bilibili.com/video/BV1Lq4y1J77x?p=9&spm_id_from=pageDriver
本文通过一个使用SpringBoot计时器的示例介绍了SpringBoot的启动流程,包括如何使用StopWatch进行时间跟踪。
38万+

被折叠的 条评论
为什么被折叠?



