IntelliJ idea Creating a Web project (full tutorial)

Source: Internet
Author: User

Description
IntelliJ idea version is 14.
JDK version is 1.7
Tomcat version is apache-tomcat-7.0.70

Note: Note the issue of the number of related software version bits during the creation process. 32-bit, 64-bit software mash-up can lead to unsuccessful access problems!!!

The first thing to understand is a basic question: In contrast to eclipse, "new Project" in IntelliJ idea is equivalent to the workspace in Eclipse (Workspace), and the "New Module" Equivalent to Engineering (project) in Eclipse. The following are used IntelliJ, please self-control conversion understanding.

1, create project: Click File–new project;  Create. Png2, select the Empty Project project, click next;  Next 3, enter the project name, select the project path;  paste_ Image.png4, create Module: Click Finish, pop up the following window, IntelliJ the default selection modules, click the plus sign, select New Module; paste_ IMAGE.PNG5, select Java, configure the module SDK, select Web application, configure versions, click Next; paste_image.png6, enter Module Name, click Finish.  paste_image.png7, select Project, configure Sdk; paste_image.png8, select modules– (modules name) –sources–web–web-inf;  PASTE_IMAGE.PNG9, right-click Web-inf, then new folder, create classes directory and Lib directory;  paste_image.png10, select paths, select Use Modules complie Output path, specify the path to the classes directory created above;  paste_image.png11, select dependencies, click the plus sign on the right, select the first jars and ..., select the Lib directory created above, click OK , Pop-up box select Jar Directory, click OK, click OK below, complete the project configuration,  PASTE_IMAGE.PNG12, configure the project: Open index.jsp, enter the display content, such as "Test ... " paste_image.png13, configure the Project Server;  paste_image.png14, click the plus sign, select Tomcat Server, choose Local; paste_ IMAGE.PNG15, configure name, server, port number,  PASTE_IMAGE.PNG16, select deployment, click + Sign, select the above configured item;  paste_ IMAGE.PNG17, set Application context, click OK to complete the Tomcat configuration;  paste_image.pnG18, start Project  paste_image.png paste_image.png Create, configure, and start the entire project of idea from this completion.


Hurried teenager
Links: https://www.jianshu.com/p/455c7c11dfb2
Source: Pinterest
Copyright belongs to the author. Commercial reprint please contact the author for authorization, non-commercial reprint please specify the source.

IntelliJ idea Creating a Web project (full tutorial)

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.