Custom configuration files - Play! Framework 2.0

前端 未结 4 1342
离开以前
离开以前 2021-01-05 05:58

I have a question about loading properties from custom configuration files. I have tried two different approaches to loading my oauth.properties file but I can\

4条回答
  •  清歌不尽
    2021-01-05 06:18

    If you want to use scala.io.Source you can also do something like

    Source.fromFile(Play.getFile("path-in-your-play-project"))
    

提交回复
热议问题