我正在尝试使用spring启动Gradle插件的版本3.2.0。这是我的build.gradle文件:
plugins {id 'java'id 'org.springframework.boot' version '3.2.0'id 'io.spring.dependency-management' version '1.1.4'
}group = 'com.yaxin'
version = '0.0.1-SNAPSHOT'java {sourceCompatibility = '21'
}repositories {maven { url 'https://maven.aliyun.com/nexus/content/groups/public/' }maven { url 'https://repo.spring.io/milestone'}mavenCentral()
}dependencies {implementation 'org.springframework.boot:spring-boot-starter'testImplementation 'org.springframework.boot:spring-boot-starter-test'
}tasks.named('test') {useJUnitPlatform()
}
---出现以下错误
---感觉不是网络的问题,Gradle镜像也配置成功
---------------------------------------------------------------------------------------------------------------------------------
之后降低了gradle.build配置文件的SpringBoot版本---2.7.6 然后就成功了???
有明白原因的吗?是Gradle和SpringBoot配置冲突?
-------
-------更新-------
简谈Spring Boot3.0升级后的踩坑之旅,另附解决方案!