eg:Could not transfer artifact com.github.xiaoymin:knife4j-spring-boot-starter:pom:2.0.7 from/to central (https://repo.maven.apache.org/maven2): Transfer failed for https://repo.maven.apache.org/maven2/com/github/xiaoymin/knife4j-spring-boot-starter/2.0.7/knife4j-spring-boot-starter-2.0.7.pom
解决办法:
1.
2.maven reload一下
3.如果还是爆红就把依赖删除,reload一下;
然后再把依赖黏贴上去,reload,注意看下版本是不是引入的那个版本号