Spring boot Gradle未找到Spring启动依赖项
这是我的build.gradle文件Spring boot Gradle未找到Spring启动依赖项,spring-boot,gradle,Spring Boot,Gradle,这是我的build.gradle文件 plugins { id 'org.springframework.boot' version '2.2.1.RELEASE' id 'io.spring.dependency-management' version '1.0.8.RELEASE' id 'java' } group = 'de.quinscape' version = '0.0.1-SNAPSHOT' sourceCompatibility = '1.8'
plugins {
id 'org.springframework.boot' version '2.2.1.RELEASE'
id 'io.spring.dependency-management' version '1.0.8.RELEASE'
id 'java'
}
group = 'de.quinscape'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
}
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-mail'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-context'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
compile("org.springframework.security:spring-security-ldap")
compile group: 'com.h2database', name: 'h2', version: '1.4.197'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
}
test {
useJUnitPlatform()
}
这就是我得到的错误:
Could not find org.springframework.boot:spring-context:.
我做错了什么?我使用Spring初始值设定项添加了所有依赖项。我只是在那个特定的项目中遇到了这个错误。只要删除
实现'org.springframework.boot:spring context'
,spring context将自动可用(带有间接依赖项)AFAIK,org.springframework.boot:spring上下文
不存在,而org.springframework:spring上下文
does您需要org.springframework.boot:spring上下文做什么?