enable spring profile command line code example
Example 1: spring boot maven run with profile
mvn spring-boot:run -Drun.profiles=dev
Example 2: spring boot procfile run profile
web: java -Dspring.profiles.active=prod -Dserver.port=$PORT $JAVA_OPTS -jar target/*.jar