Multiple immutable properties in Spring Boot with @ConfigurationProperties and @ConstructorBinding [duplicate]
As said in comments, there is not any mechanism to create multiple instances of @ConfigurationProperties
component. I found only one workaround for @ConstructorBinding
- for similar properties i create different classes which inherit the base properties class and define own constructor. I think creating a simple class and constructor doesn't take too much work time (especially if you work with IDE).