为了能够验证 Spring Boot 应用程序的启动和关闭,我们希望配置一个 startup.log 和 shutdown.log 捕获启动和关闭应用程序的事件。
为了启动一切:
Root WebApplicationContext: initialization completed in {x} ms
并从以下位置关闭所有内容:
Closing org.springframework.boot.context.embedded.AnnotationConfigEmbeddedWebApplicationContext@53bd8fca: startup date [Wed Aug 19 09:47:10 PDT 2015]; root of context hierarchy
到最后。
这是特定于容器的东西吗?(Tomcat vs Jetty vs Undertow)