In one of my Spring Boot microservices, I want to keep track of a list of servers that can be externally configurable.
I can have zero to infinity servers, so I want my application to allow me to easily define this.
I also want to be able to check that the configuration is correct, so I don’t accidentally forget to enter a url or a name for my server.
In this post, I will show you how you can use the Spring ConfigurationProperties to organize and validate a map of configuration values.
Continue reading