Maven project to deploy cloud Ali Centos

First, the packaged Maven project

1.maven project can not be deployed directly to the tomcat need to generate the corresponding war files maven, and then deploy the war files to a tomcat up

2.Eclipse generate war files

In Eclipse, right-click ssm project -> Run As-> Maven install, file address: Project path \ ssm \ target \ ssm.war

 3.IDEA generate war files

According to the steps shown in FIGS. 1, 2, it will generate a war file, file address: Project path \ ssm \ target \ ssm.war

 

Second, deploy war files

1. The first

   Upload the war to tomcat / webapps down, tomcat will automatically unzip

2. The second

   After the war upload decompression software to use ftp server, and then apply the Java web project operation

 

Third, access

   http: // server_ip: 8080 / ssm / listCategory (server_ip into real server ip address can)

 

Guess you like

Origin www.cnblogs.com/yanans/p/12610532.html