Sample answer: "@ComponentScan only scans for components. @SpringBootApplication is a shortcut for three annotations: @EnableAutoConfiguration, @ComponentScan on the package of the main class, and @SpringBootConfiguration. That's why the main class should sit in the root package."
Easy
java
spring