Spring boot- @EnableAutoConfiguration, @SpringBootApplication, @ComponentScan
Both @SpringBootApplication and @EnableAutoConfiguration can be used to enable the auto-configuration feature of Spring Boot .But there is a difference between them.
does much more than what @EnableAutoConfiguration
actually a combination of following three annotations:
which is used in Java-based configuration on Spring framework
to enable component scanning of components you write e.g. @Controller classes
itself, which is used to enable auto-configuration in Spring Boot application.