通用的解决办法:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<version>1.5.3.RELEASE</version>
<configuration>
<mainClass>com.xx.webapps.api.main.WebappsApiBidMain</mainClass>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
最主要是配置了 com.xx.webapps.api.main.WebappsApiBidMain指明springboot启动类
Note:原因请参考:https://www.cnblogs.com/thinking-better/p/7827368.html 说的比较形象