I have a properties file in spring-boot app which has postgres instance details for both the database hosted in AWS and one in local. Every time I checkout the code from git I have to comment the postgres AWS entries and uncomment the local postgres instance to work locally. Again when I want to checkin, I have to do the opposite. What is the smartest way to handle this configuration switching so that I don't have to do this every time.
N.B.: AWS deployment happens from github via Jenkins pipeline