问题:springboot项目pom文件配置springboot版本时报错
Failure to transfer org.springframework.boot:spring-boot-configuration-processor:pom:2.7.14-SNAPSHOT from https://repo.spring.io/snapshot was cached in the local repository, resolution will not be reattempted until the update interval of spring-snapshots has elapsed or updates are forced. Original error: Could not transfer artifact org.springframework.boot:spring-boot-configuration-processor:pom:2.7.14-SNAPSHOT from/to spring-snapshots (https://repo.spring.io/snapshot): repo.spring.io
原因:jdk版本与springboot版本不匹配问题,springboot版本只支持jdk17及以上
解决办法:
1.升级jdk版本
2.将Springboot版本降级使用
本人使用的是jdk11版本
<--springboot父工程-->
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.7.14-SNAPSHOT</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>