Back to Playframework

The Typesafe Config API

documentation/manual/working/javaGuide/main/config/JavaConfig.md

3.1.0-M9921 B
Original Source
<!--- Copyright (C) from 2022 The Play Framework Contributors <https://github.com/playframework>, 2011-2021 Lightbend Inc. <https://www.lightbend.com> -->

The Typesafe Config API

Play uses the Typesafe config library as the configuration library. If you're not familiar with Typesafe config, you may also want to read the documentation on [[configuration file syntax and features|ConfigFile]].

Accessing the configuration

Typically, you'll obtain a Config object through [[Dependency Injection|JavaDependencyInjection]], or simply by passing an instance of Config to your component:

@

API documentation

Since Play just uses Config object, you can see the javadoc for the class to see what you can do and how to access configuration data.