79085868

Date: 2024-10-14 11:00:30
Score: 0.5
Natty:
Report link

It is possible to do this without an extra setter since Spring Boot 3.3.3 (see here for details):

@ConfigurationProperties("foo")
record ConfProps(
 @Name("otherProp")
 String myProp
){}

And then use as

foo.otherProp=abc123
Reasons:
  • Low length (0.5):
  • Has code block (-0.5):
  • Low reputation (0.5):
Posted by: tesmo