build.gradle
buildscript {
ext {
springBootVersion = '1.5.15.BUILD-SNAPSHOT'
}
repositories {
// mavenCentral()
maven {url "http://maven.aliyun.com/nexus/content/groups/public/" }
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'org.springframework.boot'
group = 'com.waylau.spring.boot.blog'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = 1.8
repositories {
// mavenCentral()
maven {url "http://maven.aliyun.com/nexus/content/groups/public/" }
maven { url "https://repo.spring.io/snapshot" }
maven { url "https://repo.spring.io/milestone" }
}
dependencies {
compile('org.springframework.boot:spring-boot-starter-web')
testCompile('org.springframework.boot:spring-boot-starter-test')
}
Spring Boot应用搭建
本文介绍了一个使用Spring Boot搭建的应用案例,通过Gradle构建工具配置了依赖管理及插件,包括Spring Boot Gradle插件的设置,并引入了Web启动器和测试启动器。
1万+

被折叠的 条评论
为什么被折叠?



