Spring Initializr 报错:Initialization failed for 'https://start.spring.io'

本文分享了一种解决IntelliJ IDEA在创建SpringBoot项目时出现连接超时错误的方法,通过设置自动代理配置,最终实现成功创建项目。

今天使用IntellijIDEA创建SpringBoot项目报错,

错误描述:Initialization failed for 'https://start.spring.io' Please check URL, network and proxy settings. Error message: connect timed out

有人给出了两种解决方案,亲测第二种有效。
->打开Settings界面 
->点击Appearance & Behavior菜单 
->点击HTTP Proxy菜单 
->勾选Auto-detect proxy settings复选框 
->勾选Automatic proxy configuration URL: 复选框,并在输入框中录入https://start.spring.io/ 
->点击OK,测试连接成功,退出

有可能操作几次才成功,因为https://start.spring.io经常连接不上。创建项目我创建了4次,最后一次才成功了,祝各位好运!


原文:https://blog.youkuaiyun.com/hanchao5272/article/details/80388780 

2025-06-12 17:55:22 [main] INFO o.d.w.RuoYiWorkflowApplication - Starting RuoYiWorkflowApplication using Java 17.0.2 with PID 1 (/app/workflow.jar started by root in /app) 2025-06-12 17:55:22 [main] INFO o.d.w.RuoYiWorkflowApplication - The following 1 profile is active: "prod" 2025-06-12 17:55:22 [main] INFO c.a.c.n.c.NacosConfigDataLoader - [Nacos Config] Load config[dataId=ruoyi-workflow.yml, group=ARCHIVES] success 2025-06-12 17:55:22 [main] INFO c.a.c.n.c.NacosConfigDataLoader - [Nacos Config] Load config[dataId=datasource.yml, group=ARCHIVES] success 2025-06-12 17:55:22 [main] INFO c.a.c.n.c.NacosConfigDataLoader - [Nacos Config] Load config[dataId=application-common.yml, group=ARCHIVES] success 2025-06-12 17:55:29 [main] WARN o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server 2025-06-12 17:55:29 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter - *************************** APPLICATION FAILED TO START *************************** Description: Web application could not be started as there was no org.springframework.boot.web.servlet.server.ServletWebServerFactory bean defined in the context. Action: Check your application's dependencies for a supported servlet web server. Check the configured web application type. 2025-06-12 17:55:29 [Thread-6] WARN c.a.nacos.common.notify.NotifyCenter - [NotifyCenter] Start destroying Publisher 2025-06-12 17:55:29 [Thread-4] WARN c.a.n.c.http.HttpClientBeanHolder - [HttpClientBeanHolder] Start destroying common HttpClient 2025-06-12 17:55:29 [Thread-6] WARN c.a.nacos.common.notify.NotifyCenter 分析日志
最新发布
06-13
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值