May 23, 2018

@SpringBootApplication includes @EnableAutoConfiguration and does more than it.

  • @SpringBootApplication is actually a combination of three annotations: 
  • @Configuration which is used in Java-based configuration on Spring framework, 
  • @ComponentScan to enable component scanning of components you write e.g. @Controller classes, and @EnableAutoConfgiuration itself, which is used to enable auto-configuration in Spring Boot application.