no main manifest attribute, in xxx.jar

版权声明:本文为博主原创学习笔记,如需转载请注明来源: https://blog.csdn.net/wugenqiang/article/details/86551871

在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>

猜你喜欢

转载自blog.csdn.net/wugenqiang/article/details/86551871
今日推荐