Spring Boot - Advanced Patterns
You want your custom auto-configuration to activate only if a property
my.feature.enabled is true. Which annotation should you add to your configuration class?