@EnableAutoConfiguration: This annotation is used to auto-configure the bean present in the classpath and then to configure it to run the methods. The annotation is now rarely used, as @SpringBootApplication has already been released in Spring 1.2.0.
@SpringBootApplication: The annotation is the combination of @EnableAutoConfiguration, @ComponentsScan, and @Configuration.