Access Play! 2.0 configuration variables in application.conf?
The Play 2.0 Scala equivalent to this would be:
Play.current.configuration.getString("db.driver")
You will also need import play.api.Play
The full docs for this are here.
Applies to Play 2.0 - In Java Controller you can use following:
String optionValue = Play.application().configuration().getString("db.driver");
To get variable in view use this:
@play.Play.application().configuration().getString("db.driver")