问题:
XXX.jar中没有主清单属性解决办法
根本原因:
打包后的jar中的MANIFEST.MF文件缺少Main-Class
解决方法:
在pom.xml文件中添加:
<build>
<plugins>
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>repackage</goal>
</goals>
</execution>
</executions>
</plugin>
</plugins>
</build>
相关内容参考:
https://www.cnblogs.com/niceboat/p/6230448.html