使用 Gradle 构建 Spring Boot 应用
关键插件配置
Spring Boot Gradle Plugin
plugins {
id 'org.springframework.boot' version '2.1.4.RELEASE'
}io.spring.dependency-management Plugin
apply plugin: 'java'
apply plugin: 'io.spring.dependency-management'dependencies {
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
}主类
最佳实践

Last updated