I have the following deployed structure:
├── bin
│ ├── stop.sh
│ └── start.sh
├── config
│ ├── application-dev.properties
│ ├── application-local.properties
│ ├── application.properties
│ └── logback.xml
├── lib
├── myjar.jar
|__ logs
....
My start script is like:
jar -jar ../lib/myjar.jar --spring.profiles.active=dev --spring.config.location=file:./../config/
The active profile is picked up but it seems the spring.config.location is ignored and is taken from inside the packaged jar.
I've read all about external configuration here - https://docs.spring.io/spring-boot/docs/current/reference/html/boot-features-external-config.html but and have tried some variations, including the classpath e.g)
--spring.config.location=file:./../config/,classpath:/
But it just doesn't work. I've also tried using the option with -D and that doesn't work either.
Thanks for any help