springboot多模块打包提示找不到程序包

解决方案:在需要作为依赖的模块下添加

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

具体原因:
https://segmentfault.com/a/1190000019706787

发布了55 篇原创文章 · 获赞 17 · 访问量 5万+

猜你喜欢

转载自blog.csdn.net/he_xiao123/article/details/104800002