In Spring Boot, the _____ annotation can be used to specify the conditions that must be met for a component to be registered.
- @ComponentCondition
- @ComponentScan
- @Conditional
- @ConditionalOnProperty
In Spring Boot, the "@Conditional" annotation is used to specify conditions that must be met for a component to be registered. This annotation is often used in combination with other conditional annotations like "@ConditionalOnProperty" to conditionally enable or disable components based on specific criteria.
Loading...
Related Quiz
- A Spring Boot application is facing frequent OutOfMemoryErrors. Describe the steps you would take to diagnose the root cause and mitigate this issue.
- Which annotation is used to define a bean that holds the business logic in a Spring Boot application?
- In Spring Boot's project structure, where should the application properties file be placed?
- What is the significance of the @Valid annotation in a method signature within a Controller?
- What considerations should be taken into account when choosing between Flyway and Liquibase for a large-scale, complex Spring Boot application?