有什么问题,我只是在这里换了个组名,我不能解决弹性证券化的附加问题,我不明白为什么
plugins {
id 'java'
id 'org.springframework.boot' version '3.0.0'
id 'io.spring.dependency-management' version '1.1.0'
id 'org.hibernate.orm' version '6.1.5.Final'
id 'org.graalvm.buildtools.native' version '0.9.18'
}
group = '*********'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '17'
repositories {
mavenCentral()
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity6'
runtimeOnly 'org.mariadb.jdbc:mariadb-java-client'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
}
tasks.named('test') {
useJUnitPlatform()
}
hibernate {
enhancement {
lazyInitialization true
dirtyTracking true
associationManagement true
}
}无法解析配置的所有文件“:编译程序路径”。>无法解析项目所需的org.thymeleaf.extras:thymeleaf-extras-springsecurity6:3.1.0.RELEASE.:>无法解析org.thymeleaf.extras:thymeleaf-extras-springsecurity6:3.1.0.RELEASE. >无法解析POM repo.maven.apache.org/maven2/org/thymeleaf/extras/…>找不到org.springframework.security:spring-security-bom:6.0.0-RC2
我什么也没试过,它是由spring初始化程序和引导版本3.0.0制作的
发布于 2022-11-28 17:54:09
我通过更改gradle构建来解决问题--我用以下代码替换了存储库
repositories {
maven {
url "https://repo1.maven.org/maven2"
}
maven { url "https://repo.spring.io/milestone"
content {
// Thymeleaf uses 6.0.0-RC2 of Security's bom in its dependency management
includeModule("org.springframework.security", "spring-security-bom")
}
}}
我希望它能帮助到其他人
发布于 2022-11-29 07:13:13
FYI,胸腺瘤/胸腺瘤#932 .这将在Thymeleaf 3.1.1发布时修复。
https://stackoverflow.com/questions/74603629
复制相似问题