Modify the \ conf \ WEB. xml file in the Tomcat directory and find the followingCode: JSP org. Apache. Jasper. servlet. jspservlet fork false xpoweredby false 3 Add the following line of code between JSP org. Apache. Jasper. servlet. jspservlet 3: save with development true. A website built with TomcatProgram, We modify the class or web. after the XML, You need to restart tomcat to make the modified content take effect. In fact, when we set the site directory with reloadable = "true", we do not have to restart Tomcat when modifying the website information in the future, for example: Description: Path = "/jspbook" indicates the domain name, that is
Http: // ip_domaninname/jspbook; docbase = "jspbook" indicates the directory location of the platform, that is, {tomcat_install} \ webapps \ jspbook; debug indicates setting the debug level, 0 indicates that the minimum information is provided, 9 indicates that the maximum information is provided, and reloadable indicates that when Tomcat is executed. when XML is updated, it is automatically reloaded without restarting tomcat.