The @SpringBootApplication annotation is a shortcut for three annotations:
- @Configuration: This indicates that this is a Spring application context configuration file.
- @EnableAutoConfiguration: This enables auto configuration, an important feature of Spring Boot. We will discuss auto configuration later in a separate section.
- @ComponentScan: This enables scanning for Spring beans in the package of this class and all its subpackages.