配置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文件

最后编辑于
©著作权归作者所有,转载或内容合作请联系作者
平台声明:文章内容(如有图片或视频亦包括在内)由作者上传并发布,文章内容仅代表作者本人观点,简书系信息发布平台,仅提供信息存储服务。

推荐阅读更多精彩内容

  • 端午节到了,我没啥特别礼物拿得出手。思来想去,搜集了一些端午冷知识,没准您闲聊吹牛时用得着:①屈原姓芈不姓屈,他和...
    工行谢韵珊阅读 292评论 0 0
  • 今年过年的时候,我收拾我的杂物,把当初他送我礼物一件件归置了一下,有我们一起买过的两只戒指,还有两条项链,有...
    忘尘8910阅读 276评论 0 0
  • 李秋心,是她的名字。她是作为这个家庭的第五个女孩出世的,父母看着这嗷嗷待哺的第五个女娃,一筹莫展,原本就不富裕的家...
    爱吃零食的大圣阅读 419评论 1 10
  • 虽然在家不出门 但我的心却在火里泥里爬着 浴火重生说起来容易 火烧火燎看不见出口 但我坚信火的前面有出口 否则没有...
    琴键上跳舞的米老鼠阅读 288评论 0 1
  • 错误一 错误描述:android.view.InflateException: Binary XML file l...
    码梦的一生阅读 1,354评论 0 1