IDEA springBoot gradle启动和导入慢的解决方法

在中build.gradle文件中

repositories {
    mavenCentral()
}
#后添加
allprojects {
    repositories {
//        mavenCentral()
//        jcenter()
//        google()
        maven { url 'https://plugins.gradle.org/m2/' }
        maven { url 'http://maven.aliyun.com/nexus/content/repositories/google' }
        maven { url 'http://maven.aliyun.com/nexus/content/groups/public/' }
        maven { url 'http://maven.aliyun.com/nexus/content/repositories/jcenter'}
    }
}