spring
What does @SpringBootApplication comprise of?
It is a convenience annotation that combines three key annotations:
- @SpringBootConfiguration: Tags the class as a source of bean definitions for the application context.
- @EnableAutoConfiguration: Tells Spring Boot to start adding beans based on classpath settings, other beans, and various property settings.
- @ComponentScan: Tells Spring to look for other components, configurations, and services in the package, allowing it to find and register beans.