Back to course

Your First Spring Boot Application

Spring Boot 0 to Hero: The Complete Java Backend Masterclass

Hello World in Spring Boot

Let's run our first app. Open the project in your IDE and look for the main class annotated with @SpringBootApplication.

java @SpringBootApplication public class DemoApplication { public static void main(String[] args) { SpringApplication.run(DemoApplication.class, args); } }

Running the App:

Click the 'Run' button in your IDE. You will see logs in the console. By default, it starts on port 8080.