正文gradle 打包springboot项目,找不到项目jar application.classIP云V管理员/2022-08-21/6 阅读 08/21小程序:扫一扫查出行【扫一扫了解最新限行尾号】复制小程序 如题:gradle 打包springboot项目,找不到项目jar入口main方法:application.class检查:lib/目录下没有相应项目的jar包用gradle命令行查看日志:gradle distZip发现其中有一行: :jar SKIPPED,这就是原因所有解决办法:在build.gradle文件中加上:jar.enabled = true查看更详细的日志可以:gradle distZip --debug