title: What is the difference between @ComponentScan and @EnableAutoConfiguration in Spring Boot?
body: <p>What is the difference between the <code>@ComponentScan</code> and <code>@EnableAutoConfiguration</code> annotations in Spring Boot? Is it necessary to add these? My application works very well without these annotations. I just want to understand why we have to add them.</p>