第七色在线视频,2021少妇久久久久久久久久,亚洲欧洲精品成人久久av18,亚洲国产精品特色大片观看完整版,孙宇晨将参加特朗普的晚宴

為了賬號安全,請及時綁定郵箱和手機立即綁定
已解決430363個問題,去搜搜看,總會有你想問的

為什么我在 IntelliJ 中得到 Gradle 配置構建錯誤 junit5?

為什么我在 IntelliJ 中得到 Gradle 配置構建錯誤 junit5?

波斯汪 2022-03-10 19:56:00
我使用 Spring Boot 初始化程序創(chuàng)建了干凈的項目,但出現(xiàn)配置構建錯誤。我得到的消息是:Could not find org.junit:junit-bom:5.4.0-SNAPSHOT.但在我的 gradle 文件中我沒有它。它出什么問題了?    buildscript {    ext {        springBootVersion = '2.2.0.BUILD-SNAPSHOT'    }    repositories {        mavenCentral()        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: 'idea'apply plugin: 'org.springframework.boot'apply plugin: 'io.spring.dependency-management'group = 'com.example'version = '0.0.1-SNAPSHOT'sourceCompatibility = 11repositories {    mavenCentral()    maven { url "https://repo.spring.io/snapshot" }    maven { url "https://repo.spring.io/milestone" }}dependencies {    implementation('org.springframework.boot:spring-boot-starter-security')    implementation('org.springframework.boot:spring-boot-starter-web')    testImplementation('org.springframework.boot:spring-boot-starter-test')    testImplementation('org.springframework.security:spring-security-test')}
查看完整描述

2 回答

?
瀟瀟雨雨

TA貢獻1833條經(jīng)驗 獲得超4個贊

您正在使用 Spring Boot 的開發(fā)(快照)版本,它指的是 JUnit 5 的開發(fā)(快照)版本,但您尚未添加 JUnit 的快照存儲庫:https ://oss.sonatype.org/content/repositories/snapshots /org/junit/junit-bom/5.4.0-SNAPSHOT/:


repositories {

    maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }

}

但你最好使用普遍可用的版本。


查看完整回答
反對 回復 2022-03-10
?
森林海

TA貢獻2011條經(jīng)驗 獲得超2個贊

Junit 依賴項帶有"spring-boot-starter-test",它可能在您的 spring 版本中不可用。嘗試更改 spring 版本或使用最新版本并試一試。


查看完整回答
反對 回復 2022-03-10
  • 2 回答
  • 0 關注
  • 229 瀏覽
慕課專欄
更多

添加回答

舉報

0/150
提交
取消
微信客服

購課補貼
聯(lián)系客服咨詢優(yōu)惠詳情

幫助反饋 APP下載

慕課網(wǎng)APP
您的移動學習伙伴

公眾號

掃描二維碼
關注慕課網(wǎng)微信公眾號