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