错误:Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.4.2 from/to nexus-aliyun (http://maven.aliyun.com/nexus/content/groups/public): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
以及部分与spring-boot相关的包报红,应该是包没有正确的导入。
解决方法:检查报红的相关包本地文件的版本,修改版本。
我是当时这样改了之后就可以了,但是大家不一定是改了这个就可以了。
例如:
<version>2.4.1</version>
在这里强烈推荐everything这个软件,快速查找文件,超好用。
经过这段时间的反复折磨,如果一直报红,可以尝试把wifi换成手机热点,很多次因为都是网络的问题。
错误:Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.4.2 from/to
最新推荐文章于 2024-04-12 01:31:46 发布