Spring Boot - Fundamentals
You want to create a custom auto-configuration that only activates if a specific class is on the classpath. Which annotation should you use?
@ConditionalOnClass activates configuration only if the specified class is present on the classpath.@EnableAutoConfiguration enables auto-config globally; @ComponentScan scans beans; @ConfigurationProperties binds properties.15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions