build.gradle:spring-boot-gradle插件、指定主类类名
classpath("org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion")
jar {
manifest {
attributes 'Main-Class': 主类类名
}
}
运行 gradle clean build
build.gradle:spring-boot-gradle插件、指定主类类名
classpath("org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion")
jar {
manifest {
attributes 'Main-Class': 主类类名
}
}
运行 gradle clean build