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 doesn't execute any line of code, just abort the process.
Exit Code 1 means that a container terminated, typically due to an application error or an invalid reference. An application error is a programming error in any code running within the container.
From the main menu, select File | New | Project. In the left pane of the New Project wizard, select Spring Initializr. Go through the steps of the Spring Initializr project wizard.
Exit code 0 means, the application was ended without errors.
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(); } }
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With