It is generally recommended to use the @SpringBootApplication annotation, as it is more concise and easier to remember.
The alternative to the @SpringBootApplication annotation is to use the following annotations individually:
@Configuration: This annotation marks a class as a configuration class, which means that it can be used to register beans with the Spring Boot application context.
@EnableAutoConfiguration: This annotation enables Spring Boot’s auto-configuration feature, which automatically configures the Spring Boot application based on the dependencies that are present on the classpath.
@ComponentScan: This annotation enables component scanning, which means that Spring Boot will automatically scan the specified packages for annotated components, such as @Controller, @Service, and @Repository.
we have to use the above annotation manually,
Let's say we don't want to build the application using spring boot then, Micronaut, Quarkus, and Vert. x are the other options available we can go for that.