莫名其妙报下面的错误:

org.gradle.internal.resolve.ArtifactNotFoundException: Could not find spring-boot-starter-thymeleaf-3.5.5.jar (org.springframework.boot:spring-boot-starter-thymeleaf:3.5.5).
Searched in the following locations:
    https://maven.aliyun.com/repository/gradle-plugin/org/springframework/boot/spring-boot-starter-thymeleaf/3.5.5/spring-boot-starter-thymeleaf-3.5.5.jar

org.gradle.internal.resolve.ArtifactNotFoundException: Could not find lucene-highlighter-10.2.2.jar (org.apache.lucene:lucene-highlighter:10.2.2).
Searched in the following locations:
    https://maven.aliyun.com/repository/gradle-plugin/org/apache/lucene/lucene-highlighter/10.2.2/lucene-highlighter-10.2.2.jar

解决方案:

    maven { url = uri("https://maven.aliyun.com/repository/public") }
    maven { url = uri("https://maven.aliyun.com/repository/gradle-plugin") }
    maven { url = uri("https://maven.aliyun.com/repository/spring-plugin") }
    maven { url = uri("https://maven.aliyun.com/repository/google") }
    maven { url = uri("https://jitpack.io") }

一定要调整顺序,public放到第一个。
在这里插入图片描述

Logo

汇聚全球AI编程工具,助力开发者即刻编程。

更多推荐