What are the common startup and deployment methods of springboot project?

Alibaba cloud Q & A 2022-02-13 05:14:47 阅读数:938

common startup deployment methods springboot

A detailed description ?

Take the answer 1:

1. start-up main Main function . 2. use maven How to start the plug-in : newly build maven Starting mode , And clearly working directory For the project root . Command Line by spring-boot:run that will do ok start-up . The method must be standard tomcat Containers . 3. Deployment startup mode in production environment : Actual project deployment : Switch to parent project pom.xml In the root directory , mvn install package pack . take target Generated in the war The package project is deployed to tomcat/webapp in , Direct start tomcat that will do . Be careful :JAVA_HOME To set up for 1.8 because springboot2.0 Must at least jdk The environment is 1.8.

copyright:author[Alibaba cloud Q & A],Please bring the original link to reprint, thank you. https://en.javamana.com/2022/02/202202130514452313.html