2.5, , Play Injection Dependency - , . , .
( application.conf, , .conf: -
my_conf_key = "some value"
2.5: -
import play.api._
import play.api.mvc._
import javax.inject.Inject
class TestConf @Inject() (conf: Configuration) extends Controller {
def config = Action {
Ok(conf.underlying.getString("my_conf_key"))
}
}
: -
some value