1. Release the project to Tomcat: Method 1:
There is a conf directory under the tomcat installation directory, with a server. xml file, which is used to save the configuration file for publishing the project application. We only need to configure this file to release a specific project. In addition, there are other methods for release, such as publishing through war packages. This configuration server. the XML file method has the advantage of automatically loading the modified items in the project to the Web Container, and there is no need to re-release each time for loading.
The configuration method is as follows:
Add the web application configuration before the last <Context
Path = "/cahms"
Reloadable = "true"
Docbase = "E:/workspace/your_web_project/webcontent">
</Context>
Related Knowledge points:
(1) Use context as the keyword for configuration
(2) The path keyword indicates the project name, so that we can access our web project through http: // 127.0.0.1: 8080/cahms.
(3) The reloadable keyword indicates that the site can be automatically loaded'
(4) The docbase keyword specifies the location of the root directory of the site, that is, the root directory in our project.
Method 2:
Create an XML file with the same content as above. Path = "" can be removed. The file name is the project name corresponding to path, and put it in E: \ apache-Tomcat-6.0.20 \ conf \ Catalina \ localhost.
Method 3:
Create the project directory in the tomcat/webapps folder.