If you do not choose to use @SpringBootApplication, the @EnableAutoConfiguration and @ComponentScan annotations that it imports defines that habits so You can even use those as an alternative.
Spring Cloud Stream https://hannawgag849896.blogmazing.com/29730714/the-5-second-trick-for-hire-spring-boot-developers