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

你可能感兴趣的:(配置jetBrain idea)