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

Java development tips for springboot project jar packaging

无忌哥哥
无忌哥哥 Original
2018-07-19 10:40:08 1800browse


Add new plug-in to pom.xml

   org.springframework.boot spring-boot-maven-plugin   

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!

Statement:
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