Play Framework 2.4.1: How to get configuration values just after configuration file has been loaded
问题 I need to read some configuration values just after the configuration file has been loaded but before the application actually starts. In Play 2.3.x I used to override GlobalSettings.onLoadConfig , which is deprecated in Play 2.4.x. The official documentation says one should use GuiceApplicationBuilder.loadConfig instead. Again, the documentation is a bit poor and I was unable to find more details or an example... so any help would be really appreciated. 回答1: 1. Before app starts If you need