Process finished with exit code 1 Spring Boot Intellij

后端 未结 8 1618
我在风中等你
我在风中等你 2021-02-12 23:04

I\'ve received the message "Process finished with exit code 1" when I run my project. I have tried several solutions but no topic is the same error as mine. My project

8条回答
  •  囚心锁ツ
    2021-02-12 23:57

    Try to get stack trace by putting "try-catch" block, arround "run" method calling, in your main method, and print stack trace within "catch" as follows.

       public static void main(String[] args) {
        try {
            SpringApplication.run(MyApplication.class, args);
        } catch (Exception e) {
            e.printStackTrace(); 
        }
    }
    

提交回复
热议问题