I have a Spring Boot application with some configuration.
I want to specify different configuration values, for dev and production.
My application.properties file look like this:
spring.datasource.url=jdbc:mysql://devhost:devport/devschema
spring.datasource.username=devuser
spring.datasource.password=mypwd
spring.datasource.driver-class-name=com.mysql.jdbc.Driver
This file is in my git repo on Openshift. Everytime I commit, Openshift start to deploy the application, so I need the application.properties with the correct values.
Is it possible to use something like profiles to change the configuration?