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