因为之前输出的是“exit code 1”,所以将main函数改写,使得异常输出
public static void main(String[] args) {
try{SpringApplication.run(SpringBootHDFSApp.class, args);}
catch (Exception e){
System.out.println(e.getLocalizedMessage());
}
}
异常的输出结果为:
Failed to execute CommandLineRunner