If you do not want to use @SpringBootApplication, the @EnableAutoConfiguration and @ComponentScan annotations that it imports defines that behavior so You can even use those in its place.
The weather knowledge will https://neilsvhm157682.dbblog.net/3556582/spring-boot-best-practices-options