idea中搭建springboot学习(2)---idea 打包项目

版权声明:本文为博主原创文章,未经博主允许不得转载。 https://blog.csdn.net/Gr_lbxx/article/details/81174563

在pom.xml文件添加配置

<!--将项目打包成jar-->
<build>
    <plugins>
        <plugin>
            <groupId>org.springframework.boot</groupId>
            <artifactId>spring-boot-maven-plugin</artifactId>
        </plugin>
    </plugins>

用命令执行就可以了

猜你喜欢

转载自blog.csdn.net/Gr_lbxx/article/details/81174563