在Spring Boot项目中打包指定类为启动类
作者:互联网
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<configuration>
// 明确指定启动类
<mainClass>com.xxx.XxxApplication</mainClass>
</configuration>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
标签:启动,spring,类为,xxx,boot,指定,Boot,Spring 来源: https://www.cnblogs.com/nuccch/p/16410116.html