1. Generate jar package
To find solutions tried several times to start generating jar package always not up and running, the next check online
Original link: https://blog.csdn.net/qq_35275233/article/details/90373013
was added the following pom.xml
<plugin>
<the groupId> org.springframework.boot </ the groupId>
<the artifactId> Boot-Spring-Maven-plugin </ the artifactId>
<Configuration>
<-! Main Class Specifies the inlet global unique ->
<mainClass > com.ocean.SpringbootMybatisDemoApplication </ mainClass>
<layout> the ZIP </ layout>
</ Configuration>
<Executions>
<Execution>
<Goals>
<-! packet can rely on are packaged into packets generated Jar - >
<Goal> Repackage </ Goal>
</ Goals>
</ Execution>
</ Executions>
</ plugin>
after 2.jar packet uploaded to the server, the path into the jar package
CD / usr / local / Java
. 3.Enter the command to start the service
java -jar springboot-0.0.2-SNAPSHOT.jar