配置jetBrain idea

基于play!framwwork1.4

首先生成idea下的工程

play idealize myApp

生成 .ipr文件,idea打開ipr文件。

配置運行

  1. In IntelliJ IDEA, on the Run menu, select Edit Configurations.
  2. Right-click on Application under Defaults and select Add New Configuration.
  3. Under Main class, enter play.server.Server.
  4. Under VM parameters, enter -Dapplication.path=".".
  5. Under Working directory, enter the application path.
  6. Under Before launch, remove Make if exists.

在測試模式下運行

  1. Edit the run configuration and in VM parameters, append -Dplay.id=test.
  2. Right-click on your module and select Open Module Settings.
  3. Select the Dependencies tab.
  4. Click Add… and select Single-Entry Module Library.
  5. Select $PLAY_HOME/modules/testrunner/lib/play-testrunner.jar and click OK.

Do not commit the .iml files when you work in a team! 添加進gitingnore文件

最后編輯于
?著作權歸作者所有,轉載或內容合作請聯(lián)系作者
【社區(qū)內容提示】社區(qū)部分內容疑似由AI輔助生成,瀏覽時請結合常識與多方信息審慎甄別。
平臺聲明:文章內容(如有圖片或視頻亦包括在內)由作者上傳并發(fā)布,文章內容僅代表作者本人觀點,簡書系信息發(fā)布平臺,僅提供信息存儲服務。

相關閱讀更多精彩內容

  • 端午節(jié)到了,我沒啥特別禮物拿得出手。思來想去,搜集了一些端午冷知識,沒準您閑聊吹牛時用得著:①屈原姓羋不姓屈,他和...
    工行謝韻珊閱讀 320評論 0 0
  • 今年過年的時候,我收拾我的雜物,把當初他送我禮物一件件歸置了一下,有我們一起買過的兩只戒指,還有兩條項鏈,有...
    忘塵8910閱讀 322評論 0 0
  • 李秋心,是她的名字。她是作為這個家庭的第五個女孩出世的,父母看著這嗷嗷待哺的第五個女娃,一籌莫展,原本就不富裕的家...
    愛吃零食的大圣閱讀 511評論 1 10
  • 雖然在家不出門 但我的心卻在火里泥里爬著 浴火重生說起來容易 火燒火燎看不見出口 但我堅信火的前面有出口 否則沒有...
    琴鍵上跳舞的米老鼠閱讀 311評論 0 1
  • 錯誤一 錯誤描述:android.view.InflateException: Binary XML file l...
    碼夢的一生閱讀 1,414評論 0 1

友情鏈接更多精彩內容