Development and Production application.properties

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:

  1. In the main application.properties file add a line spring.profiles.active=local
  2. Create the file application-local.properties file.
  3. Put your local specific properties in that file.
  4. You can also use this same logic to create application-dev.properties, or application-prod.properties, or whatever you name it as soon as you set the spring.profiles.active correctly