configuration file

How to use the Lightbend Config library in a Scala or Java application alvin May 12, 2018 - 7:01pm
Table of Contents1 - Adding the Lightbend Config dependency2 - A Scala application that uses Lightbend Config3 - The Lightbend Config configuration file4 - Discussion

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.

How to read a YAML configuration file in Scala

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.”

Problem

You need to read a YAML configuration file in a Scala application.