Configuration and Application Start-Up
Let’s explore the auto-configuration provided by Spring Boot and interact with the live app.
We'll cover the following...
We'll cover the following...
SpringBootApplication annotation
Open the TodoApplication class in the src/main/java/io/educative package and check out the @SpringBootApplication annotation.
package io.educative;import org.springframework.boot.SpringApplication;import org.springframework.boot.autoconfigure.SpringBootApplication;@SpringBootApplicationpublic class TodoApplication {public static void main(String[] args) {SpringApplication.run(TodoApplication.class, args);}}
This annotation contains a combination of the following three primary annotations:
- The
@ComponentScanannotation looks for components like controllers, services, and repositories to add them to the