Process finished with exit code 1 Spring Boot Intellij

  1. Delete folder .idea from project folder.
  2. Delete all .iml from project folder.

You must set logging.level.root to DEBUG and read related logging to find problem. if your app uses application.yml file, add (or edit) this at beginning or end:

logging:
  level:
    root: DEBUG

if your app uses application.properties, add (or edit) below line:

logging.level.root: DEBUG

for example, my app uses an undefined property and does not show the problem in common logs, after enabling debug level logging, I got below line in logs:

Could not find key 'app.services.account.service' in any property source

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(); 
    }
}