If you do not need to use @SpringBootApplication, the @EnableAutoConfiguration and @ComponentScan annotations that it imports defines that habits so You may as well use All those instead.
There are many of components https://siobhankmtt706413.tblogz.com/getting-my-spring-boot-web-development-to-work-44309311