79768577

Date: 2025-09-18 14:35:59
Score: 1
Natty:
Report link

To run a spring boot application, you click the button when you have your main class (class with main method) in focus. However it is not so often I got this open, so you can set the IDE to run it automatically when you press run. Here is how.

  1. Click on the button in the top stating "current file" and select the option "Edit Configurations..."

    enter image description here

  2. Press the "+" button and select "Application", to make a new application configuration.

    enter image description here

  3. Give your run configuration a name and then click on the main class field, to select your main class.

    enter image description here

  4. Select you main class and press ok to all dialogs.

    enter image description here

You can now press the run button or use the shortcut keys to run your application.

Reasons:
  • Probably link only (1):
  • Long answer (-0.5):
  • No code block (0.5):
Posted by: Martin Rohwedder