heroku spring boot database code example
Example 1: spring boot procfile run profile
web: java -Dspring.profiles.active=prod -Dserver.port=$PORT $JAVA_OPTS -jar target/*.jar
Example 2: spring heroku change environment
$ heroku config:set SPRING_PROFILES_ACTIVE=tst