spring cloud - bootstrap.properties outside my jar
Spring Cloud uses the the same locations as spring boot to find bootstrap.properties
(or .yml
). So classpath:,classpath:/config,file:,file:config/
is the default search path, ./config/
is the highest precedence. If your file is in ./config
or ./
it should just work. The property (spring.cloud.bootstrap.location
) to change the location is slightly different than boot.