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

Detailed explanation of Tomcat configuration and optimization solutions

Service.xml The Server.xml configuration file is ...

Two ways to open and close the mysql service

Method 1: Use cmd command First, open our DOS win...

VUE implements bottom suction button

This article example shares the specific code of ...

Detailed explanation of non-parent-child component communication in Vue3

Table of contents First method App.vue Home.vue H...

How to view MySQL links and kill abnormal links

Preface: During database operation and maintenanc...

Detailed introduction to linux host name configuration

Table of contents 1. Configure Linux hostname Con...

MySQL index optimization: paging exploration detailed introduction

Table of contents MySQL Index Optimization Paging...

The role and opening of MySQL slow query log

Preface The MySQL slow query log is a type of log...

JS realizes video barrage effect

Use ES6 modular development and observer mode to ...

Solve the problem of Navicat for Mysql connection error 1251 (connection failed)

Because what I wrote before was not detailed enou...

js to realize a simple disc clock

This article shares the specific code of js to im...

Django+vue registration and login sample code

register The front-end uses axios in vue to pass ...

Various methods to restart Mysql under CentOS (recommended)

1. MySQL installed via rpm package service mysqld...

The images in HTML are directly replaced by base64 encoded strings

Recently, I came across a webpage that had images ...