How to do implement immutable spring properties without @ConstructorBinding
In general, developers can implement immutable Spring properties through @ConstructorBinding
Both java record type and kotlin data class can be used to declare immutable types, here use the kotlin data class to be the example.
@ConfigurationProperites(prefix = "myframework")
@ConstructorBinding
data class MyFrameworkProperties(
...omit immutable properties here...
)
However, I want this class to support all frameworks, like quarkus, not spring only.
So I do not want to use any spring...