Technology Sharing

java - tomcat deployment project

2024-07-12

한어Русский языкEnglishFrançaisIndonesianSanskrit日本語DeutschPortuguêsΕλληνικάespañolItalianoSuomalainenLatina

1. Deployment through war package

1. Export the project as a war package;

2. Place the war package in the webapps folder under the tomcat directory. The war package will be automatically parsed into a project folder after a while.

3. Start the startup.bat file in the /bin directory of tomcat. Now you can access the project homepage from the browser.

2. Deploy tomcat in eclipse

1. Click window → preferences → Server → Runtime Environments, add the corresponding tomcat version and path;

2. Click Window → Show View → Servers and add the project you want to run in Tomcat.