当spring boot 启动失败,返回信息只有
Process finished with exit code 0
我们可以在启动的main函数加上异常捕获
try {
SpringApplication.run(TiangongSpringBootDemoApplication.class, args);
} catch (Exception e) {
e.printStackTrace();
log.error("the exception is {}", e);
}