org.springframework.util.StopWatch打印程序耗时,分析代码性能

StopWatch stopWatch = new StopWatch();
stopWatch.start();
   自定义程序
stopWatch.stop();
System.out.println(stopWatch.prettyPrint());

你可能感兴趣的:(springboot)