这是我学习的spring-boot源代码项目,我想将本地spring-boot-starter-web项目导入到我的项目中,但我得到了一个错误,这里是我的build.gradle和错误消息
plugins {
id 'java'
}
group = 'org.springframework.boot'
version = '3.1.8-SNAPSHOT'
repositories {
mavenCentral()
}
dependencies {
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
implementation project(':spring-boot-starter-web')
}
test {
useJUnitPlatform()
}
个字符
大家伙,帮帮我,谢谢(最少20个字我谢谢你)
1条答案
按热度按时间mu0hgdu01#
您指定了
-SNAPSHOT
版本,但仅指定了mavenCentral
存储库。Sping Boot 快照版本不会发布到Maven Central。将版本更改为已发布的版本,如3.1.7。