I do use profiles in my Spring Boot application. In my application.properties I have this 3 entries:
spring.profiles.active=prod
key1=demo. ...
key1=prod. ...
Currently I have to uncomment the line depending on whether it is a demo or a productive release. Is there a better way of doing this using profiles of Spring Boot?