(Reprint) tomcat server.xml in the context under Introduction

conf / Context.xml Tomcat is common environment configuration; if the increase in server.xml <Context path = "/ test" docBase = "D: \ test" reloadable = "false" /> , then myApp / META-INF /Context.xml useless (server.xml is replaced in the Context), <Context> represents a single application running on a Web <Host> and a <Host> may have a plurality of <Context> element, each Web application must have a unique URL path, the path of this URL set in the attribute path <Context> in the middle. <The Context path = "/ BBS" the docBase = "BBS" Reloadable = "to true" />   

<Context> element attributes:  

A: path: Specifies the URL to access the Web application entry. 

Two: docBase: specify a file path to the Web application can be given an absolute path, may be given with the relative path appBase attribute for <Host> if Web applications using open directory structure, specify the root directory of the Web application, if Web applications are a war file, specify the file path to war. 

Three: reloadable: If this property is set to true, Tomcat server running in the state will monitor the changes in the class files in the WEB-INF / classes and WEB-INF / lib directory, if there is to monitor the class file is updated, the server automatic reload Web applications.
  During the development phase will reloadable property to true, useful for debugging and other servlet class files, but that the server is running with heavier loads, it is recommended fat deposit stage of the reloadable Web application is set to false.

(Original Address: http://hi.baidu.com/ancle_yi/blog/item/07ae8b36c80ea9bdd1a2d3e7.html )

Reproduced in: https: //www.cnblogs.com/lkzero/articles/2995860.html

Guess you like

Origin blog.csdn.net/weixin_33924312/article/details/93852991