Externalizing an environmental configuration using property files
The previous recipe taught us about the application properties and how they are provisioned. As was mentioned at the beginning of this chapter, during application deployment, it is almost inevitable to have some property values that are environment dependant. They can be database configurations, service topologies, or even simple feature configurations where something might be enabled in development but not quite ready for production just yet.
In this recipe, we will learn how to use an externally residing properties file for an environment-specific configuration, which might reside in the local filesystem or out in the wild on the internet.
In this recipe, we will use the same application with all the existing configurations as we used in the previous recipe. We will use it to experiment with starting up using the external configuration properties that are living in the local filesystem and from an internet URL, such as GitHub...