It is very common to have properties file for local, dev, and prod environment. Mostly use it to handle the database connection setting. To do this:
spring.profiles.active=localapplication-local.properties file.application-dev.properties, or application-prod.properties, or whatever you name it as soon as you set the spring.profiles.active correctly