用IDEA构建Springboot失败,异常Cannot download 'https://start.spring.io': Read timed out...

今天使用idea构建springboot项目时,突然抛出异常,大概意思是连接超时,代码一片爆红.
解决办法

  1. 点击左上角File按钮,找到Settings;
  2. 关闭防火墙(重要);
  3. 搜索HTTP Proxy,如下:
    用IDEA构建Springboot失败,异常Cannot download 'https://start.spring.io': Read timed out...
    这样就应该没问题了!