Closed
Description
Using Spring Boot 2.0.3.RELEASE and executing application using Spring Boot fat jar with java -jar
.
If the application context fails to startup for some reason (for example, a @Bean
method throws an exception), I get no stacktrace information. The only log of the error that I get is a warning that just includes the toString() of the exception (logged in AbstractApplicationContext.refresh()
). I just have a simple main
setup like this:
@SpringBootApplication
public class Application {
public static void main(String[] args) {
SpringApplication.run(Application.class, args);
}
}
The only way the I can get more useful information is to wrap the call to SpringApplication.run()
in a try/catch and log my own exception.