Detailed explanation of the principle of creating tomcat in Eclipse

Detailed explanation of the principle of creating tomcat in Eclipse

When creating a tomcat server on a local eclipse,

A copy of the configuration file in the conf file in the tomca installation directory will be copied to this tomcatserver directory

This tomcatserver directory is in the workspaces path, the same path as other projects

The files are as follows. These configuration files are the startup parameters for starting the tomcat call

Startup parameters when starting tomcat

-Dcatalina.base="D:\Source Code\SVN2013\.metadata\.plugins\org.eclipse.wst.server.core\tmp3" -Dcatalina.home="F:\Apache\apache-tomcat-8.5.34" -Dwtp.deploy="D:\Source Code\SVN2013\.metadata\.plugins\org.eclipse.wst.server.core\tmp3\wtpwebapps" -Djava.endorsed.dirs="F:\Apache\apache-tomcat-8.5.34\endorsed"

-Dcatalina.base

-D indicates a parameter, catalina.base indicates the parameter name, and the string after = indicates the value corresponding to the parameter.

Use the System.getProperty("catalina.base") method to get the corresponding value.

When starting here,

catalina.base, which indicates the working directory of Tomcat, or catalina.base refers to an instance of Tomcat.

catalina.home indicates the installation directory of Tomcat, that is, the directory containing the bin file.

wtp.deploy is the target path for project deployment, or the target path for the project to be copied after compilation. This directory is equivalent to the root directory of the address http://localhost:8080/ when accessing tomcat.

The above is the full content of this article. I hope it will be helpful for everyone’s study. I also hope that everyone will support 123WORDPRESS.COM.

You may also be interested in:
  • Eclipse configuration tomcat publishing path problem wtpwebapps solution
  • Java Web Development [Tomcat Environment Configuration] MyEclipse+IDEA Configuration Tutorial
  • Tomcat9 download, installation and configuration + detailed tutorial on integrating into eclipse
  • How to solve the problem that the project in eclipse cannot be added to tomcat
  • How to configure tomcat server for eclipse and IDEA
  • Modify the deployment path of Tomcat in Eclipse

<<:  Analysis of the difference between Mysql InnoDB and MyISAM

>>:  JavaScript to achieve the idea of ​​​​snake game

Recommend

Disadvantages and reasonable use of MySQL database index

Table of contents Proper use of indexes 1. Disadv...

Examples of importing and exporting MySQL table data

This article describes the import and export oper...

Detailed explanation of the group by statement in MySQL database group query

1: Statement order of grouping function 1 SELECT ...

How to restore single table data using MySQL full database backup data

Preface When backing up the database, a full data...

Detailed explanation of Javascript closures and applications

Table of contents Preface 1. What is a closure? 1...

Two implementations of front-end routing from vue-router

Table of contents Mode Parameters HashHistory Has...

How to find and delete duplicate rows in MySQL

Table of contents 1. How to find duplicate rows 2...

How to configure redis sentinel mode in Docker (on multiple servers)

Table of contents Preface condition Install Docke...

How to completely uninstall iis7 web and ftp services in win7

After I set up the PHP development environment on...