新項目的build.gradle配置應該是這樣的:
buildscript {
ext {
springBootVersion = '2.0.0.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"}
}
apply plugin: 'java'
apply plugin: 'org.springframework.boot'
apply plugin: 'io.spring.dependency-management'
posted on 2019-02-23 21:30
小王 閱讀(443)
評論(0) 編輯 收藏 引用 所屬分類:
Java 、
SpringBoot