Skills of deploying multiple projects in Tomcat


Method 1, in the Tomcat root directory under the conf folder server.xml In the < host > tag in the file, add:

//Docbase: Webroot path of the project: Accessible path: reload every time
<Context path="/PD_Microportal" docBase="E:\WorkSpace\PD_Microportal\WebContent" debug="0" reloadable="false"/>

However, for the frequent switching of multiple items above, you need to annotate, which is very troublesome! Look down and there’s something simpler

Method 2. Create a new XML file in the root directory of Tomcat under the file conf / Catalina / localhost. The file name is the path of your project, which can be started at will, which is the path name accessed on the browser. If you want to deploy several projects at the same time, create several XML files. Pay attention to the duplicate file names. Then put this:

< context path = docbase = e: ﹣ workspace \ \ project name \ \ webcontent "debug =" 0 "reloadable =" false "/ >

Put it in your new XML file. For example, I have the following three projects: OA, CRM and ERP oa.xml , crm.xml , erp.xml 。 Then create a new folder named TEP, which is used to store XML files of projects that do not need to be deployed. For example: I don’t want to deploy the OA project now, so I can directly oa.xml Put it in the TEP folder and it’s OK. Next time you want to deploy it, you can take it out. It’s very convenient to have wood!

Recommended Today

nuxt.js Imitating wechat app communication chat | Vue + nuxt chat | imitating wechat interface

Project overview be based on vue.js + nuxt.js +Chat room imitating wechat app interface developed by vuex + webpack + node + vant and other technologiesNuxtchatroom project。 It realizes the functions of card type drag and slide, message / expression sending, picture / video preview, red packet / circle of friends and so on. Technology […]