在Linux中,用java -jar xxx.jar启动的时候,报错:
no main manifest attribute, in xxx.jar
查找资料发现, 是打包的时候,需要在pom.xml文件中加入:
<plugin>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-maven-plugin</artifactId>
</plugin>
---------------------
作者:Java-Basketball
来源:CSDN
原文:https://blog.csdn.net/superdangbo/article/details/80760691
版权声明:本文为博主原创文章,转载请附上博文链接!