当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);
        }
Logo

腾讯云面向开发者汇聚海量精品云计算使用和开发经验,营造开放的云计算技术生态圈。

更多推荐