Spring configuration properties with types and fallback
Problem I have following spring properties myservice: domains: domain1: supplier: baseUrl: getEndpoint: customer: postEndpoint: domain2: supplier: baseUrl: getEndpoint: retryCount: customer: baseUrl: postEndpoint: fallbackDomain: supplier: baseUrl: getEndpoint: retryCount: customer: baseUrl: postEndpoint: The idea is that there is constant configuration for multiple domains, can be “domain1”, “domain2”, “domain3” etc. And in addition there is fallback domain. If […]