IntelliJ idea 14.1.1 Deployment run JSP or Java EE project

Source: Internet
Author: User
Tags tomcat server

This main introduction IntelliJ idea 14.1.1 under Deployment run Java Web project, including JSP Java EE.

To create a new Java Web project:

First select File-->new--mudule (or open Project Structure ctrl+alt+shift+s select mudules)

appear: Tick Java or the Web application in Java Enterprise can

Java EE in Java Enterprise can check Java EE version and application server

We chose Java EE Web application for the first time in Java

Example: Enter the module name

Disk directory After creating a new module

Configuring the Tomcat Server

Search for servers in settings such as:

or menu selection View-->toolbar such as:

Tomcat server and Tomee server can also be found in the defaults list

By importing the Tomcat root directory

Then add the Tocat server to the list.

Modify the Tomcat name, click Apply, and the Tomcat server is configured

Modifying the compilation Path

Enter the project Web-inf directory to create a new classes and Lib directory

Open Project Strucute, press: Configure compile output directory, click Apply

Writing code and adding jar-to-module environments

This is a login system written by SSH, the directory structure is as follows:

Disk directory Structure

Adding jars to the system environment

Here is not very clear about checking the Export and Scope dropdown options.

Deploy Project to Tomcat

Click Tomcat in the toolbar to run.

IntelliJ idea 14.1.1 Deployment run JSP or Java EE project

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.