If you do not choose to use @SpringBootApplication, the @EnableAutoConfiguration and @ComponentScan annotations that it imports defines that behavior so You may also use those instead.
The @SpringBootApplication https://aronuzjy577684.bloggerbags.com/35484478/5-essential-elements-for-hire-dedicated-java-spring-boot-developer