1.问题描述
1.springboot 项目在构建项目的时候,构建出来的jar包里面的文件
MANIFEST.MF 基本上是空文件
2.导致springboot项目在启动的时候无法找到启动类入口
2.解决方案
gradle.build文件中加入下面这些
apply plugin: 'org.springframework.boot'
apply plugin: "io.spring.dependency-management"
compile group: 'com.github.ManifestClasspath', name: 'com.github.ManifestClasspath.gradle.plugin', version: '0.1.0-RELEASE', ext: 'pom'