launching jar with -Dspring.profiles.active code example Example: run jar file java -jar yourFile.jar