解决新建springboot项目时包导不进来的问题
发现问题
- 新建一个springboot项目
- 此时maven的setting配置文件配置的阿里云的源
- 发现很多包导不进来,于是reimport,没有效果
- 于是执行clean命令
- 报错
Could not transfer artifact org.springframework.boot:spring-boot-starter-parent:pom:2.2.4.RELEASE from/to alimaven (https://maven.aliyun.com/repository/central): PKIX path building failed: sun.security.provider.certpath.SunCertPathBuilderException: unable to find valid certification path to requested target
- 进入报错的网站查找springbootRELEASE2.2.4的包(https://maven.aliyun.com/repository/central)
- 发现阿里云还没有2.2.4的包,于是将springboot的版本改成2.1.7