..O Deniz's personal pages
/home /about

TypeSafe config override

March 28, 2017

Every now and then you need to be able to define some default value in your configuration and be able to override them based on the environment you are running in. TypeSafe Config has a nice way of allowing this:

production {
  service2: ${?SERV1}

when you define you config like this if your application start with -DSERV1= then the command line value will override the default in the configuration file.

Tags: #programming