如何使用默认 SBT 布局生成播放应用程序
How generate play application with default SBT layout
如何使用默认的 sbt 布局创建新的 play 应用程序模板?
我可以在退出应用程序时在 build.sbt
中设置 disablePlugins(PlayLayoutPlugin)
,但我想从头开始生成模板
你需要下载 play zip 包作为环境变量中的设置路径,并从命令提示符执行 play new YourApplication
https://www.playframework.com/documentation/2.0/NewApplication
假设您正在使用 Activator, you can use the play-sbt-layout-seed template to create an application using the default SBT layout。为此,只需 运行 以下命令:
activator new your-project-name play-sbt-layout-seed
我终于专门为此创建了一个Giter8模板。
你可以这样做:
sbt new muya/play-sbt-scala-seed.g8
如何使用默认的 sbt 布局创建新的 play 应用程序模板?
我可以在退出应用程序时在 build.sbt
中设置 disablePlugins(PlayLayoutPlugin)
,但我想从头开始生成模板
你需要下载 play zip 包作为环境变量中的设置路径,并从命令提示符执行 play new YourApplication
https://www.playframework.com/documentation/2.0/NewApplication
假设您正在使用 Activator, you can use the play-sbt-layout-seed template to create an application using the default SBT layout。为此,只需 运行 以下命令:
activator new your-project-name play-sbt-layout-seed
我终于专门为此创建了一个Giter8模板。
你可以这样做:
sbt new muya/play-sbt-scala-seed.g8