...

/

Configuration and Application Start-Up

Configuration and Application Start-Up

Let’s explore the auto-configuration provided by Spring Boot and interact with the live app.

SpringBootApplication annotation

Open the TodoApplication class in the src/main/java/io/educative package and check out the @SpringBootApplication annotation.

Press + to interact
package io.educative;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
@SpringBootApplication
public class TodoApplication {
public static void main(String[] args) {
SpringApplication.run(TodoApplication.class, args);
}
}

This annotation contains a combination of the following three primary annotations:

...