I simply needed to put the condition on the bean itself
@ConditionalOnProperty(prefix = "my.features",name = feature1.enabled", havingValue = "true") public class Feature { Feature getFeature() .. etc. }