idea springboot 打成jar包

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

1.pom.xml加插件

    <build>
        <plugins>
            <plugin>
                <groupId>org.springframework.boot</groupId>
                <artifactId>spring-boot-maven-plugin</artifactId>
                <configuration>
                    <executable>true</executable>
                </configuration>
            </plugin>
        </plugins>
    </build>

2.双击package。

clean为清除生成的jar包。点击图标闪电,为忽略。

3.提示成功后,去对应的目录中查看。

猜你喜欢

转载自blog.csdn.net/xinyuebaihe/article/details/88643551