いろいろ方法があるとは思いますが、紹介するのは文字列をパースして追加する方法です。 com.typesafe.config.ConfigFactory は内部的に利用されているので何もしなくても import 出来ます。 play console [info] Loading project definition from /private/tmp/todolist/project [info] Set current project to todolist (in build file:/private/tmp/todolist/) [info] Starting scala interpreter... [info] Welcome to Scala version 2.9.1.final (Java HotSpot(TM) 64-Bit Server VM, Java 1.6.0_3
![Play2.0 / Scala で動的に設定値を追加 - Qiita](https://cdn-ak-scissors.b.st-hatena.com/image/square/99b1b5e9c4d450d98c989462bac77030c5df8c19/height=288;version=1;width=512/https%3A%2F%2Fqiita-user-contents.imgix.net%2Fhttps%253A%252F%252Fcdn.qiita.com%252Fassets%252Fpublic%252Farticle-ogp-background-9f5428127621718a910c8b63951390ad.png%3Fixlib%3Drb-4.0.0%26w%3D1200%26mark64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTkxNiZoPTMzNiZ0eHQ9UGxheTIuMCUyMCUyRiUyMFNjYWxhJTIwJUUzJTgxJUE3JUU1JThCJTk1JUU3JTlBJTg0JUUzJTgxJUFCJUU4JUE4JUFEJUU1JUFFJTlBJUU1JTgwJUE0JUUzJTgyJTkyJUU4JUJGJUJEJUU1JThBJUEwJnR4dC1jb2xvcj0lMjMyMTIxMjEmdHh0LWZvbnQ9SGlyYWdpbm8lMjBTYW5zJTIwVzYmdHh0LXNpemU9NTYmdHh0LWNsaXA9ZWxsaXBzaXMmdHh0LWFsaWduPWxlZnQlMkN0b3Amcz1lMmFhNGYwNjMxM2Q2OWUwMTgwNTQ4NDlkZjJjMTQ0Zg%26mark-x%3D142%26mark-y%3D112%26blend64%3DaHR0cHM6Ly9xaWl0YS11c2VyLWNvbnRlbnRzLmltZ2l4Lm5ldC9-dGV4dD9peGxpYj1yYi00LjAuMCZ3PTYxNiZ0eHQ9JTQwa3lzbm0mdHh0LWNvbG9yPSUyMzIxMjEyMSZ0eHQtZm9udD1IaXJhZ2lubyUyMFNhbnMlMjBXNiZ0eHQtc2l6ZT0zNiZ0eHQtYWxpZ249bGVmdCUyQ3RvcCZzPWIwZjBjNWMzOTliOTA4ZmZmNDAxYWFmNDEzZWM0OGJm%26blend-x%3D142%26blend-y%3D491%26blend-mode%3Dnormal%26s%3Dbf1068eb4adfeaff01f8bf6521a778c1)