Browse Source

打包指定main方法入口

小柒2012 7 years ago
parent
commit
3dbb231e3f
1 changed files with 11 additions and 0 deletions
  1. 11 0
      pom.xml

+ 11 - 0
pom.xml

@@ -144,6 +144,17 @@
 			<plugin>
 				<groupId>org.springframework.boot</groupId>
 				<artifactId>spring-boot-maven-plugin</artifactId>
+				<!-- 指定main方法入口 -->
+				<configuration>
+                    <mainClass>com.itstyle.Application</mainClass>
+                </configuration>
+                <executions>
+                    <execution>
+                        <goals>
+                            <goal>repackage</goal>
+                        </goals>
+                    </execution>
+                </executions>
 				<dependencies>
 					<!-- mvn spring-boot:run 热部署启动 -->
 					<dependency>