In this article, we will try to understand about @SprinbBootApplication and What is the Responsibility of SpringBootApplication Annotation.
If anyone asks a question about this, simply you can say that it is enabling auto-configuration and it is doing the component scan for Dependency Injection. Also, it is marking that, the current class is the main class for Spring Boot Application i.e it is the starting point of our Spring Boot Application.
How to prove that?
When you open SpringBootApplicaiton Java File, it has the following information
if you look at the above picture you can see @SpringBootConfiguration @EnableAutoConfiguration and @ComponentScan so, When invoking @SpringBootApplication Annotation, the Above annotations are invoking and performing its respective operations.