tomcat configuration project (non-war, and multi-port configuration)

1. If the project is a non-war package with a project file directory structure, you need to add the following file path to the conf file of tomcat

and match its name

D:\softwares\javatools\tomcat\apache-tomcat-8.5.15\conf\Catalina\localhost

 

Then configure the mapping relationship in it

<Context path="/BPMWeb" docBase="D:\softwares\javatools\tomcat\apache-tomcat-8.5.15\webapps\BPMWeb" debug="0" reloadable="true" crossContext="true">
</Context>

 

 

2. How to configure projects with different ports

Suppose I have two tomcats (8.0 8.5) here, one starts with ide, and one runs another front-end project

It cannot be enabled at the same time because it will cause port conflicts, so you need to configure the tomcat server.xml of 8.5

 

Modify 8005 8009 8080 ports


 

Modify these ports and then start

 

 

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326119363&siteId=291194637