程序启动,遇到Process finished with exit code 1 解决方法
Process finished with exit code 1 解决方法
其实不用那么复杂,这一般是程序启动时发生了报错,只需要在启动类加上异常捕获即可。再根据异常信息,对症下药。
try {
SpringApplication.run(PreventApplication.class, args);
} catch (Exception e) {
System.out.printf(e.toString());
}
还没有评论,来说两句吧...