Spring boot-Deploy war to Tomcat

Source: Internet
Author: User

1. In the Pom file, package the default jar package and change it to be packaged in a war package:
<!--how to package-
<packaging>war</packaging>


2. Execute the project in the doc command mvn install package, build the project's war package, you can see the war package under the project target directory;


3. Install Tomcat, place the war under Tomcat's WebApps directory, open the Startup.bat under the Bin directory, and if it is a Linux environment, you can view the Tomcat logs in the following ways.


4. After you start Tomcat, you will see that the WebApps below the war package is unzipped, then go to the browser to access the project

The deployment of the war package is now done in Tomcat.

Spring boot-Deploy war to Tomcat

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.