问题描述了解springcloud架构可以加求求:三五三六二四七二五九
创建多模块 boot 项目,打包失败。
问题原因
因为 pom 集成了 boot-parent,打包时,在没有指定 mainClass 入口时,会找所有子模块下的 main 方法,除去 web 目录下有之外,其他模块下面均没有,导致打包异常。
解决方式
指定对应模块的 main 入口即可。
org.springframework.boot spring-boot-maven-plugincom.kele.windweb.WindWebApplication repackage



