Home > Back-end >  Three ways of tomcat configuration access to the file
Three ways of tomcat configuration access to the file

Time:12-23

The first: copy to access file a.t xt to tomcat webapps/ROOT folder under the installation path:
The access path is: localhost: 8080/a.t xt
Or create a new folder under the webapps folder (test), put the test file b.t xt folder:
Access path: localhost: 8080/test/b.t xt

The second: in the tomcat installation directory path conf/server. The XML file, find the host node element, the default seme host node the Context node, the node must be defined doBase (practical example of files in the folder path: F: \ test) attributes, path (access to the virtual path:/test) property, the following

Access path: localhost: 8080/t c.t xt can access to the actual path F: \ test \ c.t xt file

The third: the conf/server in the tomcat installation directory. The search Engine in the XML file name specified folder/the defaultHost attribute name folder (conf/Catalina/localhost) to create a new d.x ml files, XML files, in addition to file the required head tag, also must have a Context tag, there must be a doBase properties, the following
<? The XML version='1.0' encoding="utf-8"?>

Access path: localhost: 8080/which xt


Mobile phone on the heart is really tired!!!!!

CodePudding user response:

Bosses, is the docBase

CodePudding user response:

CodePudding user response:

In the server's server. The configuration XML do
CodePudding user response:

Thank you, save of the new experiment! (the teacher said the experiment not clear)
  • Related