关于SpringBoot项目打包没有把依赖的jar包一起打包的解决办法

一般未一起打包是因为pom不是继承自spring-boot-starter-parent导致的需要在pom.xml文件写入以下配置

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

然后再执行:maven install

 

posted @ 2019-07-05 17:48  明年上初中  阅读(3211)  评论(0编辑  收藏  举报