See http://www.databasesandlife.com/spring-loadallproperties-wrong-order/ To run: docker build -t foo . && docker run -it --rm foo