springboot的jar包,没有主清单属性
It has been 1234 days since the last update, the content of the article may be outdated.
springboot的jar包,没有主清单属性
最近开发项目时,springboot项目开发完成打成jar包,在使用java -jar test.jar 运行时报错:
k2alpha-sample.jar中没有主清单属性
解决:
在maven文件中,加入如下代码:
javascript
1 | <build> |
再次运行正常
评论
TwikooValine