Transfer from http://jingyan.baidu.com/article/ca2d939dd90183eb6d31ce79.html Tools/raw materials
- 1
TOMCAT7 is green software, after decompression can be used, please first extract Tomcat to the appropriate location (the whole path is suggested to be English path),
Such as:
- 2
Open Eclipse, under the menu bar, File--new--other ..., open and locate Web--dynamic Web Project, and then click Next.
Such as:
- 3
Only the next step, the following dialog box appears, the main items are as follows (which is not mentioned in the default, do not modify, as shown in the main configuration):
Project name : item name, starting with
Target Runtime: Click on the right "New runtime", select your own server, here we choose: Apache-Apache Tomcat v7.0, select, click "Next", there is an entry: Tomcat Installation directory: Locate the location where you unzipped the TOMCAT7. Then click "Finish".
Configuration : Click on the right "Modify", can be properly configured, but according to my beginner experience, completely use the default on the line, do not move the inside of things. When used in the configuration, you are already a veteran.
- 4
When the above configuration is complete, it appears, click "Next",
Such as:
- 5
Continue to click Next, and then
Such as:
- 6
Next, select by icon, you need to configure Web. XML, hit "hook". Click "Finish".
Such as:
- 7
When the previous configuration is complete, the items "Servers" and "Tomcattest" appear in Project Explorer, such as
- 8
Below eclipse there is a servers tag, select New Server Wizard ..., the specific operation here is not a good description, please look directly in the picture shown
- 9
When the previous step is complete, a
- 10
Here, the configuration is basically complete. You can develop relevant content for testing.
It should be explained that, at this time, press, double-click the server in the servers label, the relevant configuration appears.
As shown,
- 11
The basic configuration of Tomcat under Eclipse is complete here. Then you need to start the server and test it with the code.
END