If you do not desire to use @SpringBootApplication, the @EnableAutoConfiguration and @ComponentScan annotations that it imports defines that actions so you can also use All those as an alternative.
The https://karimnmgn526080.pointblog.net/not-known-details-about-spring-boot-web-development-72148848