The _____ annotation is used to mark the main class of a Spring Boot application.

  • @MainClass
  • @Main
  • @SpringBootApplication
  • @EntryPoint
The @SpringBootApplication annotation is used to mark the main class of a Spring Boot application. It combines several other annotations, including @Configuration, @ComponentScan, and @EnableAutoConfiguration, making it the entry point for a Spring Boot application. The other options, such as @MainClass and @EntryPoint, are not standard annotations used for this purpose.
Add your answer
Loading...

Leave a comment

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