Java's SpringBoot project packaging and project startup

Article directory


first step

Execute Mavenbuild instructionspackage

java_Maven_package


second step

To run the project (execute the startup command), you need to start the command line window
in the location where the current package is located , or you can enter the location where the package is located through the command line window commandCMD
cd

java -jar singleFableFullStack-0.0.1-SNAPSHOT.jar

java_package


java_java -jar


Precautions

Plug-ins are required to start using jarthe command line maven. Please confirm that there are SpringBootcorresponding mavenplug-ins when packaging.

<build>
	<plugins>
		<plugin>
			<groupId>org.springframework.boot</groupId>
			<artifactId>spring-boot-maven-plugin</artifactId>
		</plugin>
	</plugins>
</build>

Guess you like

Origin blog.csdn.net/weixin_51157081/article/details/132549308