(摘抄)Defining Application Servers in IntelliJ IDEA

本文介绍如何在IntelliJ IDEA Ultimate版中定义应用服务器。主要包括三种方式:通过设置对话框单独定义、创建项目或模块时定义以及创建运行/调试配置时定义。文章详细解释了每种方式的具体步骤。

转自:https://www.jetbrains.com/help/idea/defining-application-servers-in-intellij-idea.html

 

 

 

This feature is supported in the Ultimate edition only.

To define a server in IntelliJ IDEA, in most of the cases, all you have to do is to specify where the corresponding server is installed.

You can define a server:

  • Separately, in the Settings dialog: Ctrl+Alt+S | Build, Execution, Deployment | Application Servers | /help/img/idea/2017.2/new.png, etc.
  • When creating a project or module.
  • When creating a server run/debug configurationRun | Edit Configurations | /help/img/idea/2017.2/new.png | <Server Name>, etc.

In this section:

Defining a server in the Settings dialog

  1. Open the Settings dialog (e.g. Ctrl+Alt+S).
  2. In the left-hand pane, in the Build, Execution, Deployment category, select Application Servers.
  3. On the Application Servers page that opens in the right-hand part of the dialog, click /help/img/idea/2017.2/new.png. (Alternatively, press Alt+Insert.)
  4. Select the server that you are going to use.
  5. In the dialog that opens, specify the server settings and click OK. For most of the servers, you have to specify just the server home, i.e. the server installation directory. For more information, see Application Servers.
  6. Click OK in the Settings dialog.

Defining a server when creating a project or module

  1. Do one of the following:
    • If you are going to create a new project: click Create New Project on the Welcome screen or select File | New | Project.

      As a result, the New Project wizard opens.

    • If you are going to add a module to an existing project: open the project you want to add a module to, and select File | New | Module.

      As a result, the New Module wizard opens.

  2. On the first page of the wizard, in the left-hand pane, select Java Enterprise.
  3. In the right-hand part of the page, to the right of the Application Server field, click New.
  4. Select the server that you are going to use.
  5. In the dialog that opens, specify the server settings and click OK. For most of the servers, you have to specify just the server home, i.e. the server installation directory.
  6. Specify other settings as necessary and click Next. For more information, see Project Category and Options or Module Category and Options.
  7. Specify the name and location settings and click Finish. For more information, see Project Name and Location or Module Name and Location.

Defining a server when creating a run/debug configuration

  1. Open the Run/Debug Configurations dialog (e.g. Run | Edit Configurations).
  2. Click /help/img/idea/2017.2/new.png (Alt+Insert), select the server of interest (e.g. Tomcat Server) and, if available, select Local or Remote.
  3. In the right-hand part of the dialog, on the Server tab, click Configure to the right of the Application server list.
  4. In the dialog that opens specify the server settings and click OK.
  5. Specify other run/debug configuration settings as necessary and click OK.

 

评论
成就一亿技术人!
拼手气红包6.0元
还能输入1000个字符
 
红包 添加红包
表情包 插入表情
 条评论被折叠 查看
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值