运行 玩框架项目

Run Play framework project

我应该 运行 什么文件才能打开并查看我的 Play 项目如何工作?

这是我在 Intellij Idea 中打开的项目的屏幕截图:

请看。

有关更多信息,您应该阅读 - Getting Started with Play 2.x

根据文档:

A play application has several entry points, one for each URL. We call these methods 'action' methods. Action methods are defined in special classes that we call 'controllers'

对于使用 Intellij Idea 工具的 运行ning Play Framework 应用程序,您需要下载并安装 Scala 插件。

然后press the down arrow in you right top corner -> Edit Configurations -> + -> Play 2 App -> select play module

您可以运行通过命令行在应用程序根目录下执行play run来玩应用程序。

有用的资源:

Configuring Intellij Idea for runnin Play-application

Quick quide to starting up the Play project