当我执行命令时: java -cp crystal_subs.jar -Dloader.main = org.quartz.QuartzSubscriptionsApplication org.springframework.boot.loader.PropertiesLauncher
我收到错误:“找不到或加载主类org.springframework.boot.loader.PropertiesLauncher”
我的pom:
<properties>
<java.version>11</java.version>
<start-class>org.mandint.quartzsubscriptions</start-class>
<final-name>QuartzSubscriptionsApplication</final-name>
</properties>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-loader</artifactId>
<version>2.1.4.RELEASE</version>
</dependency>
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
<configuration>
<finalName>${final-name}</finalName>
<layout>ZIP</layout>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
任何建议将不胜感激。