如何对springboot启动类捕获异常
在启动类加上
public static void main(String[] args) { try { SpringApplication.run(PigsBlogBackstageApplication.class, args); System.out.println("Successful Start"); } catch (Exception e) { e.printStackTrace(); } }
在启动类加上
public static void main(String[] args) { try { SpringApplication.run(PigsBlogBackstageApplication.class, args); System.out.println("Successful Start"); } catch (Exception e) { e.printStackTrace(); } }