Configuration and Application Start-Up
Explore the use of the @SpringBootApplication annotation to configure Spring Boot projects. Understand how it combines key annotations for component scanning, configuration, and auto-configuration. Learn how to start the application using Java or Gradle and how to verify the app response with cURL.
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.
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