Java web and the use of Tomcat
I. What is the Java Web:
Reference Baidu Encyclopedia: Http://baike.baidu.com/link?url=HnaWXFD7wFfPAlFMW02GV6r5pAG-xOcfpfefXn3gAuVFxSy4SjwF08vbznS4d_ 4dvshpiovdrtm1vgtcln_x6_
Two. How to create a Java Web project:
1. Create Web project:
2.setting:
Projiect Name: Project name
The Java EE specifcation level:java JDK version level is selected based on the JDK version you installed.
3. After creating the project directory diagram:
4. Configure Tomcat:
windows-preferences-myeclipse-servers-tomcat-tomcat7.x:
Because of the many components below, the quickest way is to find the corresponding version that Tomcat chooses to download by searching.
Enable Tomcat first, and then choose the installation root of Tomcat. Just select the first one, and the others will be selected automatically.
Such as:
5.tomcat Add Item:
(You can add multiple items and repeat the following.) )
When Tomcat is enabled, Tomcat is more servers under the
Right-click Tomcat to select Add Deployment:
6. Select the project you want to run:
Project: Projects that you want to run.
To start Tomcat:
There are many ways to right-click-run Server
Java Java Web and the use of Tomcat