`activator new` 是否创建了正确的 Scala Play 结构?

Does `activator new` create the correct Scala Play anatomy?

根据Scala Play application layout documentation解剖图如下:

 app                      → Application sources
  └ assets                → Compiled asset sources
     └ stylesheets        → Typically LESS CSS sources
     └ javascripts        → Typically CoffeeScript sources
  └ controllers           → Application controllers
  └ models                → Application business layer
  └ views

发出activator new时:

models目录好像省略了:

讨论:

一些 Play 示例包含模型目录,而执行 activator new 时则不是这样。

是的。文件夹 app 相当于传统 Scala 或 Java 项目中的 src/main/scalasrc/main/java,因此位于其下的是 developer-defined.

顺便说一句,SBT now supports Giter8, so you could try generating a project using the Play Scala Seed如果你想sense-check我的回答。