springboot:问题Project ‘org.springframework.boot:spring-boot-starter-parent:2.5.6‘ not found 8
spring-boot
spring-projects/spring-boot: 是一个用于简化Spring应用开发的框架。适合用于需要快速开发企业级Java应用的项目。特点是可以提供自动配置、独立运行和内置的Tomcat服务器,简化Spring应用的构建和部署。
项目地址:https://gitcode.com/gh_mirrors/sp/spring-boot
·
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.5.6</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
依赖报红色却能运行,发现本地仓库中是没有这个版本的依赖的,阿里云远程仓库也没收到,估计中央仓库才有。

解决:
Invalidate Caches/Restart清理一下idea缓存。因为如果之前用过老版本的springboot开发,下次新建springboot项目,idea默认会缓存父依赖项信息,当引入本地仓库不存在的父依赖版本时,就会报错:找不到依赖申明。而引用本地仓库已存在的依赖版本并不会报错,因此才推断出是idea缓存的原因。清除缓存之后,重启,刷新pom.xml,发现自动下载新版本的springboot了,下载完成后不再报红。


spring-projects/spring-boot: 是一个用于简化Spring应用开发的框架。适合用于需要快速开发企业级Java应用的项目。特点是可以提供自动配置、独立运行和内置的Tomcat服务器,简化Spring应用的构建和部署。
最近提交(Master分支:4 个月前 )
5cc0e4b7
Closes gh-48956
22 小时前
5f5217d5
Update `JavaConventions` and `EclipseConventions` to align the
Eclipse import with the regular Gradle Build.
Imported projects now use Java 25 for the JRE but have
compatibility set to Java 17 and a project configuration
that uses the `--release` flag.
This update also removes the calls to `setSourceCompatibility`
and `setTargetCompatibility` on the `JavaPluginExtension`
in favor of just using `compile.options.release`.
We now also enforce that Java 25 or above is being used to
build the project.
Since buildship doesn't offer a way to set the `--release`
JDT project setting, a custom task is used. Projects may need
to be reimported or cleaned to actually have the setting apply
correctly.
Closes gh-48929
23 小时前
AtomGit 是由开放原子开源基金会联合 CSDN 等生态伙伴共同推出的新一代开源与人工智能协作平台。平台坚持“开放、中立、公益”的理念,把代码托管、模型共享、数据集托管、智能体开发体验和算力服务整合在一起,为开发者提供从开发、训练到部署的一站式体验。
更多推荐


所有评论(0)