2017-07-15 97 views
1

我應該運行什麼文件才能打開並查看Play項目的工作方式?運行Play框架項目

這裏是我的項目的一個屏幕截圖的IntelliJ IDEA打開:

enter image description here

回答

1

根據文檔:

的播放應用程序具有多個入口點,每個URL。我們將這些方法的'行動'方法稱爲 。操作方法在我們稱之爲「控制器」

對於運行與您需要下載並安裝插件Scala IntelliJ IDEA的工具玩Framework應用程序的特殊 類中定義。

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

enter image description here

您可以運行你通過應用程序根目錄下執行命令play run放線的應用程序。

的Userful資源:

Configuring Intellij Idea for runnin Play-application

Quick quide to starting up the Play project