Home > Java > javaTutorial > Java development tips for springboot project jar packaging

Java development tips for springboot project jar packaging

无忌哥哥
Release: 2018-07-19 10:40:08
Original
1934 people have browsed it


Add new plug-in to pom.xml

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

1.

Start in startup classJava development tips for springboot project jar packaging

2.

You can also use the command line mvn spring-boot:run in the directory to start (you need to configure the java environment variable version 1.8)

3.

1. Use mvn install in the project directory to compile the project

2. Enter the target directory and use java -jar project name.jar to start the project

## # ###### ###

The above is the detailed content of Java development tips for springboot project jar packaging. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template