Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
由于在 scala 中使用硬编码字符串(带播放)被认为是一种罪过。我的代码中有一些硬编码的数字。那么我可以在播放的消息文件中声明这些数字,然后在项目中访问它们并将它们转换为 Int/BigInteger 什么?
用于存储配置数据,使用位于 ./conf 目录中的 application.conf,然后使用 Play.current.configuration.getInt("some.property") 检索它