The _____ annotation in Spring Boot includes several other annotations, such as @Configuration, @EnableAutoConfiguration, and @ComponentScan.
- @SpringApp
- @BootApplication
- @AutoConfigure
- @SpringConfig
The @SpringBootApplication annotation in Spring Boot includes several other annotations, such as @Configuration, @EnableAutoConfiguration, and @ComponentScan. It is the primary annotation to enable a Spring Boot application and combines various configuration and component scanning annotations. While other options may exist as individual annotations, @SpringBootApplication is the one that encompasses them all in the context of a Spring Boot application.
Loading...
Related Quiz
- Which annotation is primarily used for writing integration tests in Spring Boot applications?
- How can you change the default port number of the embedded web server in a Spring Boot application?
- In Spring Boot, which annotation is used to denote that a test class should load only specific parts of the application context for Web tests?
- How can you map application-specific exceptions to HTTP status codes in a Spring Boot application?
- How can specific error messages be displayed for validation errors in Spring Boot applications?