springboot 打包一定要配置打包插件

一.说明

springboot在打包时候,一定要配置打包插件,如下所示:

打包成jar包,需要增加maven依赖
        <build>
            <plugins>
                <plugin>
                    <groupId>org.springframework.boot</groupId>
                    <artifactId>spring-boot-maven-plugin</artifactId>
                </plugin>
            </plugins>
        </build>
        如果没加相关依赖,执行maven打包,运行后会报错:no main manifest attribute, in XXX.ja

猜你喜欢

转载自blog.csdn.net/u011066470/article/details/115058360
今日推荐