If you don't desire to use @SpringBootApplication, the @EnableAutoConfiguration and @ComponentScan annotations that it imports defines that behavior so You may as well use These instead.
A part of the shared archive on https://jakubdgxa509776.ampblogs.com/the-smart-trick-of-spring-boot-development-services-that-no-one-is-discussing-67076670