IDEA创建SpringBoot连接https://start.spring.io超时

使用idea创建spring 项目时,遇到了Server URL连接超时的问题。网上的方法很多,偶然发现一个特别好的方法,一起做下整理。

一、问题:

idea创建spring 项目时,下图页面卡顿:
在这里插入图片描述
点击next后,弹出弹框报错:Initialization failed for ‘https://start.spring.io’ Please check URL, network and proxy settings. Error message: connect timed out

二、解决办法

1、idea的HTTP Proxy 网络代理(强烈推荐)
在idea的 Settings中找到 HTTP Proxy, 选择Auto-detect proxy settings。点击最下面的Check connection弹出如下的输入框,输入地址https://start.spring.io点击ok
在这里插入图片描述

参考博客如下,不得不说,这位博主太牛了:
IDEA创建SpringBoot无法连接https://start.spring.io

2、修改成阿里的服务器http://start.aliyun.com
在这里插入图片描述
优点:连接速度快,稳定性好,可以使用阿里组件。
缺点:有些组件与原来的不同,版本有差异。

参考博客:
IDEA创建SpringBoot项目无法连接http://start.spring.io

3、修改成国内的下载源https://start.springboot.io(推荐)
在这里插入图片描述

参考博客:
IDEA创建SpringBoot时出现initialization failed for ‘https://start.spring.io‘, Connecting time out的解决方法

4、https://start.spring.io/中的https改成http
在这里插入图片描述

参考博客:
idea创建springboot报错:https://start.spring.io

题外:https与http区别:端口不同;安全性不同,https是加密过的,安全性更高。

评论 2
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值