解決方案:
build.gradle中使用
plugins {
id "org.springframework.boot" version "2.1.5.RELEASE"
}
或是
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:2.1.5.RELEASE"
}
}
apply plugin: "org.springframework.boot"
然後打包命令使用:gradle build