intellij-idea 中“进程已完成并退出代码 1”是什么意思?

YWi*_*cky 3 java intellij-idea spring-boot

当我运行 Java 代码时,出现错误“进程已完成,退出代码 1”。我使用的是 Intellij IDEA 2018.3。下面是我得到的错误日志。

错误截图

Jar*_*dCS 5

要获取有关退出代码的更多信息,请尝试在 SpringApplication.run() 函数周围放置一个 try catch,如下所示:

try
{
    SpringApplication.run(Application.class, args);
}
catch (Throwable throwable)
{
    System.out.println(throwable.toString());
    throwable.printStackTrace();
}
Run Code Online (Sandbox Code Playgroud)