【发布时间】:2019-11-04 09:48:22
【问题描述】:
使用 Spring Boot 2.0.5。在应用程序启动时发生异常,记录为“ConfigServletWebServerApplicationContext:上下文初始化期间遇到异常”。但我需要堆栈跟踪。我期待堆栈跟踪稍后会记录在 SpringApplication.reportFailure '"Application run failed"' 中。但是在此方法 ServletWebServerApplicationContext.stopAndReleaseWebServer 之前进行春季启动调用,并且似乎在此调用之后任何日志记录都不再起作用。
【问题讨论】:
标签: spring-boot logging