1. in Myeclipse mode, copy the project to the webapps directory of Tomcat. if this directory does not need to be set, tomcat will treat all subfolders as a site, the ROOT directory of Tomcat accessed by the browser is the parsed ROOT folder. 2. create an ecli using Eclipse...
1. Myeclipse method
Copy the project to the webapps directory of Tomcat without setting this directory. tomcat regards all subfolders as a site, the ROOT directory of Tomcat accessed by the browser is the parsed ROOT folder.
2. Eclipse method
Create a temporary folder {work interval} \ for eclispe }\. metadata \. plugins \ org. eclipse. wst. server. core \ tmp0, used to replace the Tomcat webapps directory, and then copy the project to this directory. When Tomcat is started, the referenced webapps path is dynamically modified.
% JAVA_HOME % \ bin \ javaw.exe
-Dcatalina. base = E: \ eclipse_space \. metadata \. plugins \ org. eclipse. wst. server. core \ tmp0"
-Dcatalina. home = D: \ apache-tomcat-7.0.22"
-Dwtp. deploy = E: \ eclipse_space \. metadata \. plugins \ org. eclipse. wst. server. core \ tmp0 \ wtpwebapps"
-Djava ............."
% JAVA_HOME % \ bin \ javaw.exe
-Dcatalina. base = E: \ eclipse_space \. metadata \. plugins \ org. eclipse. wst. server. core \ tmp0"
-Dcatalina. home = D: \ apache-tomcat-7.0.22"
-Dwtp. deploy = E: \ eclipse_space \. metadata \. plugins \ org. eclipse. wst. server. core \ tmp0 \ wtpwebapps"
-Djava ............."
3. use embedded Tomcat
Tomcat is added to the project dependencies as a common Jar, and then a startup class is written in the code. Create the conf directory under the WebRoot Directory, conf directory put three tomcat configuration files: context. xml, tomcat-users.xml, web. xml.
From the prime time