playframework/playframework
[doc] Document how to access configuration (Application, Configuration etc)
Aperta
#6358 aperta il 27 lug 2016
help wantedtopic:documentation
Metriche repository
- Star
- (12.623 stelle)
- Metriche merge PR
- (Merge medio 10g 17h) (69 PR mergiate in 30 g)
Descrizione
In trying to answer a question for someone, I was looking for docs on how to access the configuration, and correct me if I'm wrong, but I can't find anywhere in the Play docs that put it simply that you need to inject the configuration object. I think it would be of value to add a page to the "Application Settings" section:
https://www.playframework.com/documentation/2.5.x/JavaApplication
That said this is how to access configuration, this is how to access the classloader (environment), etc.