spring boot怎么打成jar包呀,在线等
1个回答
展开全部
<pre t="code" l="xml"><plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>添加到pom文件里面,然后mvn package打成的jar就可以直接java -jar myproject.jar运行了
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>添加到pom文件里面,然后mvn package打成的jar就可以直接java -jar myproject.jar运行了
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询