I have a spring boot application.
I have three profiles in my application-> development, staging and production. So I have 3 files
you can use the following command line:
java -jar -Dspring.profiles.active=[yourProfileName] target/[yourJar].jar