79816309

Date: 2025-11-11 06:51:01
Score: 1
Natty:
Report link

I use something like this in a @Configuration annotated class

    @ConfigurationProperties(prefix = "some.prefix")
    @ConditionalOnProperty(prefix = "enabled")
    MyConfigProperties myConfigProperties() {
        return new MyConfigProperties();
    }
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (1):
Posted by: Martijn Stalenhoef