I'm using the Spring Framework (specifically Spring Boot) for the first time, so forgive me if there is an obvious solution to this...
In my application, I have an embedded application.yml which provides defaults to a whole load of configuration parameters. This works fine if I run the JAR using:
java -jar myapp.jar
However, my application has been developed to detect additional components on the classpath, meaning I need to run the following command instead:
java -classpath .;myapp.jar;extra/* org.springframework.boot.loader.JarLauncher
When running it like this, the embedded application.yml isn't detected and therefore my configuration parameters aren't given default values.
Can anyone explain what is causing this, and how I can get around the issue?