If you want to use Lightbend Config configuration files in your Scala or Java application, here’s a quick example of how to configure and use Lightbend Config in your application. In this case I’m specifically using Scala and SBT.
java -Dconfig.file=my_app.conf [the rest of your app parameters] -------------------------
In my case I read the Lightbend Config file like this in my Scala application:
This is an excerpt from the Scala Cookbook (partially modified for the internet). This is Recipe 12.6, “How to read a YAML configuration file in Scala.”
You need to read a YAML configuration file in a Scala application.