79763464

Date: 2025-09-13 01:40:29
Score: 1
Natty:
Report link

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.
}
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Self-answer (0.5):
  • Low reputation (0.5):
Posted by: BreenDeen