Which annotation is primarily used in Spring Boot to mark the main class of your application?

  • @MainClass
  • @SpringBootApplication
  • @SpringBootClass
  • @SpringMain
In Spring Boot, the primary annotation used to mark the main class of your application is @SpringBootApplication. This annotation not only marks the class as the main entry point but also enables various Spring Boot features like auto-configuration, component scanning, and more. It's the starting point for your Spring Boot application.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *