How to package the maven project and publish it to the official tomcat

After the maven project is developed,

run maven install

Then a folder named after the project will be added to the target directory of the project, and a WAR package named after the project, <Context path="" docBase=" in the server.xml file of your tomcat deployment D:\workspace2017\Tygps\target\tygps" reloadable="true" autoDeploy="true" defaultSessionTimeOut="3600"/> can be deployed directly to this directory. Then start it up.

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=326271862&siteId=291194637