Maven project jar package shortcut plug-in

Add in pom.xml


Click to run clean and package on the Maven plug-in of IDEA to package the helloworld project into a jar package,

The packaged jar package is generated in the target folder of the helloworld project.

Run java -jar boot-01-helloworld-1.0-SNAPSHOT.jar with cmd to run the helloworld project.

Just execute the jar package directly on the target server.

Guess you like