I am trying to load an external properties file into my spring boot app.
initially I used @PropertySource in the config class.
but now I want to remove this annotation so the class is not dependent on the location.
so I tried to use:

 java -jar my-boot-ws.war --SPRING_CONFIG_NAME=file:///Users/TMP/resources/

based on this http://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html documentation but I get the following error:

 Caused by: java.lang.IllegalArgumentException: Could not resolve placeholder

using the annotation works fine but I would really like to move away from that.
any help on this would be great
Thanks