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.
Loading...
Related Quiz
- Which of the following is not a benefit of connection pooling in Spring Boot applications?
- How can you handle exceptions at the @RestController level, and how is it different from using @ControllerAdvice?
- To enable method-level security in Spring Security, the _____ annotation must be added to the configuration class.
- In Spring Boot, the _____ annotation can be used to specify the conditions or actions that should be executed before testing each method.
- You are developing a Spring Boot application which has conflicting auto-configuration classes. How would you analyze and resolve these conflicts to ensure the correct configurations are applied?