以下是示例:
org.springframework.boot
spring-boot-maven-plugin
default-cli
com.example.MainClass1
second-entry-point
repackage
com.example.MainClass2
second
---------------
按照以上配置方式,运行报错“Unable to find a single main class from the following candidates”,原因是项目中有两个 main Class.
而无法实现单一项目分开打包,请教有何解决方法?
谢谢!