You could put the defaults in environments.properties then prod.proprties etc can contain values that overrule them. Then you might want to pass the values you get through the constructor.