The usual, introduction, look at the picture
Click to enter,
After OK,
And then just keep on next, just fine.
When you are finished, click the button in the Red box
After you click Enter, start setting up the project.
Set modules, just enter the modules basically do not set, but you can set according to their needs, click Sources,test is the source code and test package, excluded is an exclusion package, I basically used to set those IDE configuration files.
An important step is to click on the dependcies in the red box
After clicking Dependcies, the shortcut key Alt+insert or find a green "+" number,
After selecting the library, add Tomcat to my tomcat.
Click on the navigation bar on the left Libraries,lib package is selected when the project is introduced.
Click on the facets, the same is also the introduction of the project, click to enter will be the default.
The most important step, artifacts,maven comrade must be very familiar with,
This is supposed to be a war package, because the war package in idea doesn't hit under Tomcat's WebApps,
The main thing is to have him, compile the time also have it, according to the picture reborn into a war package
Here Eclipse chooses Webcontent,myeclipse is Webroot, I was here to make a mistake.
Then OK. Next configure Tomcat, I am configured here, by default here is the click Configuration of Edit Configurations.
Go in and configure Tomcat. The usual Alt+insert or green "+" sign.
Click, the default this is this, according to individual needs change, next click Deployment, is to publish our project
Add the new war package that we created earlier in artifacts.
OK after adding finished. Then you can run Tomcat.
OK, everything's okay, guys, they can start.