If you don't would like to use @SpringBootApplication, the @EnableAutoConfiguration and @ComponentScan annotations that it imports defines that actions so You may also use Those people instead.
The https://qasimmefj041662.blogdemls.com/30100045/5-simple-statements-about-spring-boot-development-services-explained