IDEA在导入jdbc包时,pom文件出现:Failed to read artifact descriptor for org.springframework.boot:spring-boot-starter-jdbc。
解决方法:将仓库的地址换为阿里云的仓库,重新导入依赖,错误消失!
<!--修改仓库为阿里云--> <repositories> <repository> <id>aliyun-repos</id> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <snapshots> <enabled>false</enabled> </snapshots> </repository> </repositories> <pluginRepositories> <pluginRepository> <id>aliyun-plugin</id> <url>http://maven.aliyun.com/nexus/content/groups/public/</url> <snapshots> <enabled>false</enabled> </snapshots> </pluginRepository> </pluginRepositories>