Spring Boot:生成可运行Jar包
作者:
王勇1024 | 来源:发表于
2019-01-04 21:56 被阅读5次
POM配置
<!--配置spring boot打包(可运行jar包)-->
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<configuration>
<mainClass>${spring.boot.mainclass}</mainClass>
</configuration>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
Maven打包
mvn clean pakage
运行jar文件
java -jar xxx.jar
本文标题:Spring Boot:生成可运行Jar包
本文链接:https://www.haomeiwen.com/subject/jshlrqtx.html
网友评论