|
|
@@ -74,12 +74,21 @@
|
|
|
</activation>
|
|
|
<properties>
|
|
|
<spring.profiles.active>dev</spring.profiles.active>
|
|
|
+ <spring.boot.mainclass>com.mokasz.pool.image.ImagePoolApplication</spring.boot.mainclass>
|
|
|
+ </properties>
|
|
|
+ </profile>
|
|
|
+ <profile>
|
|
|
+ <id>exec</id>
|
|
|
+ <properties>
|
|
|
+ <spring.profiles.active>dev</spring.profiles.active>
|
|
|
+ <spring.boot.mainclass>com.mokasz.pool.image.ImportUrlsFromFileThreadedApplication</spring.boot.mainclass>
|
|
|
</properties>
|
|
|
</profile>
|
|
|
<profile>
|
|
|
<id>prod</id>
|
|
|
<properties>
|
|
|
<spring.profiles.active>prod</spring.profiles.active>
|
|
|
+ <spring.boot.mainclass>com.mokasz.pool.image.ImagePoolApplication</spring.boot.mainclass>
|
|
|
</properties>
|
|
|
</profile>
|
|
|
</profiles>
|
|
|
@@ -90,6 +99,7 @@
|
|
|
<artifactId>spring-boot-maven-plugin</artifactId>
|
|
|
<configuration>
|
|
|
<fork>true</fork><!-- 热部署 -->
|
|
|
+ <mainClass>${spring.boot.mainclass}</mainClass>
|
|
|
</configuration>
|
|
|
<executions>
|
|
|
<execution>
|