My question is about spring boot autoconfiguration and if default propertyvalues can be set depending on which profile is active.
Sometimes the same properties are added in alot of microservices. For example if we depend on a swagger client. Then the endpoint url for all the different environments need to be set in all the projects that use that client. It would be nice if we could set that up in a starterproject for that client. Then there would only be one place where we would have to maintain that.
But the property is not the same in all environments so it should be possible to have a default value per environment. Is there a best way to do this?