Idea developing a Dynamic Web project

Source: Internet
Author: User
Tags directory create

IntelliJ Idea This development tool is powerful, but most people are accustomed to eclipse development, so the tool is not very well understood.

Let's share with you today the experience of using IntelliJ idea to create a dynamic Web project.

Don't like to spray Oh!

1. The first step, of course, is to open our IntelliJ idea development tool! Haha, well, don't talk nonsense, start straight.

I'll take the 2016 version of IntelliJ idea as an example.

In the top left corner, click File--> New---Project

2, then will pop up a selection box, select Java Enterprise, online some will say the choice of the first Java is also feasible, there is a little bit of difference between the two, of course, don't forget to tick the Web application, click Next,

3: Click Next will appear the first item is your project name, pick it up, the second is your project path, select OK then click Finish

4, after completion, click Wef-inf, right, new-->directory create two folders, classes and Lib this name do not change Oh!

That's probably it.

5, when you are finished, click File, and then select Project Structure

6, click Modules, select Paths, select the Use module compile output path, change the path to the classes folder you just created

7.ok then point to the next dependencies, click on the "+" number, select 1 JARs or directories,

8. Select the Lib folder you just created, OK

9. Select a 3rd, jar Directory. OK, all the way!

10. After returning to the main interface, click Run and select Edit Configurations

11. See Tomcat already, this is the benefit of Java Enterprise, click Deployment,

12.Application context can be filled or not filled

13, click Index.jsp. Write a phrase like Hello World first Dynamic web run

14. Click the triangle in the upper right corner

15. Run successfully, done! Nonsense, here's the address and the 12th one. Application context has a relationship yo, if. Application context is written in, the corresponding localhost after also add OH

Idea developing a Dynamic Web project

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.