V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
VincentMzm
V2EX  ›  Java

求解 StartupStep 这个接口是做什么用的?

  •  
  •   VincentMzm · 2021-06-20 11:21:04 +08:00 · 1717 次点击
    这是一个创建于 1013 天前的主题,其中的信息可能已经有所发展或是发生改变。

    在看 spring 的源码 不是很理解这个 StartupStep 的作用 有没有大佬帮忙解答一下

    1 条回复    2021-06-22 15:29:58 +08:00
    zhady009
        1
    zhady009  
       2021-06-22 15:29:58 +08:00
    Spring5.3 里增加的 简单试了下试可以统计 bean 创建耗时
    可以看下这个文章 https://www.amitph.com/spring-boot-startup-monitoring/#ApplicationStartup_StartupStep
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2881 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 27ms · UTC 13:54 · PVG 21:54 · LAX 06:54 · JFK 09:54
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.