千家信息网

spring cloud eureka服务启动失败怎么解决

发表于:2026-11-01 作者:千家信息网编辑
千家信息网最后更新 2026年11月01日,本篇内容介绍了"spring cloud eureka服务启动失败怎么解决"的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细
千家信息网最后更新 2026年11月01日spring cloud eureka服务启动失败怎么解决

本篇内容介绍了"spring cloud eureka服务启动失败怎么解决"的有关知识,在实际案例的操作过程中,不少人都会遇到这样的困境,接下来就让小编带领大家学习一下如何处理这些情况吧!希望大家仔细阅读,能够学有所成!

环境:

 2.3.5.RELEASE  Hoxton.SR8

错误log

Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat

Error starting ApplicationContext. To display the conditions report re-run your application with 'debug' enabled.
2022-03-15 21:56:29.508 ERROR 18232 --- [ main] o.s.boot.SpringApplication : Application run failed

org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:161) ~[spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:545) ~[spring-context-5.2.10.RELEASE.jar:5.2.10.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.refresh(ServletWebServerApplicationContext.java:143) ~[spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:758) ~[spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
at org.springframework.boot.SpringApplication.refresh(SpringApplication.java:750) ~[spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
at org.springframework.boot.SpringApplication.refreshContext(SpringApplication.java:405) ~[spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:315) ~[spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1237) ~[spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
at org.springframework.boot.SpringApplication.run(SpringApplication.java:1226) ~[spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
at com.imooc.registry.RegistryApp.main(RegistryApp.java:16) ~[classes/:na]
Caused by: org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:142) ~[spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.(TomcatWebServer.java:104) ~[spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getTomcatWebServer(TomcatServletWebServerFactory.java:440) ~[spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
at org.springframework.boot.web.embedded.tomcat.TomcatServletWebServerFactory.getWebServer(TomcatServletWebServerFactory.java:193) ~[spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.createWebServer(ServletWebServerApplicationContext.java:178) ~[spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
at org.springframework.boot.web.servlet.context.ServletWebServerApplicationContext.onRefresh(ServletWebServerApplicationContext.java:158) ~[spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
... 9 common frames omitted
Caused by: java.lang.IllegalStateException: StandardEngine[Tomcat].StandardHost[localhost].TomcatEmbeddedContext[] failed to start
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.rethrowDeferredStartupExceptions(TomcatWebServer.java:187) ~[spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
at org.springframework.boot.web.embedded.tomcat.TomcatWebServer.initialize(TomcatWebServer.java:126) ~[spring-boot-2.3.5.RELEASE.jar:2.3.5.RELEASE]
... 14 common frames omitted

原因:spring cloud版本有问题,更换为一下版本即可

Hoxton.SR12

Spring 官方对应版本地址: (https://start.spring.io/actuator/info)

{    "git": {        "branch": "7857199786b4ffba883304a75dfbaac342ffaa51",        "commit": {            "id": "7857199",            "time": "2022-03-15T07:59:46Z"        }    },    "build": {        "version": "0.0.1-SNAPSHOT",        "artifact": "start-site",        "versions": {            "spring-boot": "2.6.4",            "initializr": "0.13.0-SNAPSHOT"        },        "name": "start.spring.io website",        "time": "2022-03-15T08:01:37.995Z",        "group": "io.spring.start"    },    "bom-ranges": {        "azure": {            "3.2.0": "Spring Boot >=2.3.0.M1 and <2.4.0-M1",            "3.5.0": "Spring Boot >=2.4.0.M1 and <2.5.0-M1",            "3.14.0": "Spring Boot >=2.5.0.M1 and <2.7.0-M1"        },        "codecentric-spring-boot-admin": {            "2.4.3": "Spring Boot >=2.3.0.M1 and <2.5.0-M1",            "2.5.5": "Spring Boot >=2.5.0.M1 and <2.6.0-M1",            "2.6.2": "Spring Boot >=2.6.0.M1 and <2.7.0-M1"        },        "solace-spring-boot": {            "1.1.0": "Spring Boot >=2.3.0.M1 and <2.6.0-M1"        },        "solace-spring-cloud": {            "1.1.1": "Spring Boot >=2.3.0.M1 and <2.4.0-M1",            "2.1.0": "Spring Boot >=2.4.0.M1 and <2.6.0-M1"        },        "spring-cloud": {            "Hoxton.SR12": "Spring Boot >=2.2.0.RELEASE and <2.4.0.M1",            "2020.0.5": "Spring Boot >=2.4.0.M1 and <2.6.0-M1",            "2021.0.0-M1": "Spring Boot >=2.6.0-M1 and <2.6.0-M3",            "2021.0.0-M3": "Spring Boot >=2.6.0-M3 and <2.6.0-RC1",            "2021.0.0-RC1": "Spring Boot >=2.6.0-RC1 and <2.6.1",            "2021.0.1": "Spring Boot >=2.6.1 and <2.6.5-SNAPSHOT",            "2021.0.2-SNAPSHOT": "Spring Boot >=2.6.5-SNAPSHOT and <3.0.0-M1",            "2022.0.0-M1": "Spring Boot >=3.0.0-M1 and <3.1.0-M1"        },        "spring-cloud-gcp": {            "2.0.8": "Spring Boot >=2.4.0-M1 and <2.6.0-M1",            "3.1.0": "Spring Boot >=2.6.0-M1 and <2.7.0-M1"        },        "spring-cloud-services": {            "2.3.0.RELEASE": "Spring Boot >=2.3.0.RELEASE and <2.4.0-M1",            "2.4.1": "Spring Boot >=2.4.0-M1 and <2.5.0-M1",            "3.3.0": "Spring Boot >=2.5.0-M1 and <2.6.0-M1",            "3.4.0": "Spring Boot >=2.6.0-M1 and <2.7.0-M1"        },        "spring-geode": {            "1.3.12.RELEASE": "Spring Boot >=2.3.0.M1 and <2.4.0-M1",            "1.4.13": "Spring Boot >=2.4.0-M1 and <2.5.0-M1",            "1.5.10": "Spring Boot >=2.5.0-M1 and <2.6.0-M1",            "1.6.4": "Spring Boot >=2.6.0-M1 and <2.7.0-M1",            "1.7.0-M2": "Spring Boot >=2.7.0-M1 and <3.0.0-M1",            "2.0.0-M1": "Spring Boot >=3.0.0-M1 and <3.1.0-M1"        },        "vaadin": {            "14.8.5": "Spring Boot >=2.1.0.RELEASE and <2.6.0-M1",            "23.0.1": "Spring Boot >=2.6.0-M1 and <2.8.0-M1"        },        "wavefront": {            "2.0.2": "Spring Boot >=2.1.0.RELEASE and <2.4.0-M1",            "2.1.1": "Spring Boot >=2.4.0-M1 and <2.5.0-M1",            "2.2.2": "Spring Boot >=2.5.0-M1 and <2.7.0-M1"        }    },    "dependency-ranges": {        "native": {            "0.9.0": "Spring Boot >=2.4.3 and <2.4.4",            "0.9.1": "Spring Boot >=2.4.4 and <2.4.5",            "0.9.2": "Spring Boot >=2.4.5 and <2.5.0-M1",            "0.10.0": "Spring Boot >=2.5.0-M1 and <2.5.2",            "0.10.1": "Spring Boot >=2.5.2 and <2.5.3",            "0.10.2": "Spring Boot >=2.5.3 and <2.5.4",            "0.10.3": "Spring Boot >=2.5.4 and <2.5.5",            "0.10.4": "Spring Boot >=2.5.5 and <2.5.6",            "0.10.5": "Spring Boot >=2.5.6 and <2.5.9",            "0.10.6": "Spring Boot >=2.5.9 and <2.6.0-M1",            "0.11.0-M1": "Spring Boot >=2.6.0-M1 and <2.6.0-RC1",            "0.11.0-M2": "Spring Boot >=2.6.0-RC1 and <2.6.0",            "0.11.0-RC1": "Spring Boot >=2.6.0 and <2.6.1",            "0.11.0": "Spring Boot >=2.6.1 and <2.6.2",            "0.11.1": "Spring Boot >=2.6.2 and <2.6.3",            "0.11.2": "Spring Boot >=2.6.3 and <2.6.4",            "0.11.3": "Spring Boot >=2.6.4 and <2.6.5-SNAPSHOT",            "0.11.4-SNAPSHOT": "Spring Boot >=2.6.5-SNAPSHOT and <2.7.0-M1"        },        "okta": {            "1.4.0": "Spring Boot >=2.2.0.RELEASE and <2.4.0-M1",            "1.5.1": "Spring Boot >=2.4.0-M1 and <2.4.1",            "2.0.1": "Spring Boot >=2.4.1 and <2.5.0-M1",            "2.1.5": "Spring Boot >=2.5.0-M1 and <2.7.0-M1"        },        "mybatis": {            "2.1.4": "Spring Boot >=2.1.0.RELEASE and <2.5.0-M1",            "2.2.2": "Spring Boot >=2.5.0-M1"        },        "camel": {            "3.5.0": "Spring Boot >=2.3.0.M1 and <2.4.0-M1",            "3.10.0": "Spring Boot >=2.4.0.M1 and <2.5.0-M1",            "3.13.0": "Spring Boot >=2.5.0.M1 and <2.6.0-M1",            "3.15.0": "Spring Boot >=2.6.0.M1 and <2.7.0-M1"        },        "picocli": {            "4.6.3": "Spring Boot >=2.4.0.RELEASE and <3.0.0-M1"        },        "open-service-broker": {            "3.2.0": "Spring Boot >=2.3.0.M1 and <2.4.0-M1",            "3.3.1": "Spring Boot >=2.4.0-M1 and <2.5.0-M1",            "3.4.0-M2": "Spring Boot >=2.5.0-M1 and <2.6.0-M1"        }    }}

"spring cloud eureka服务启动失败怎么解决"的内容就介绍到这里了,感谢大家的阅读。如果想了解更多行业相关的知识可以关注网站,小编将为大家输出更多高质量的实用文章!

版本 服务 内容 更多 知识 实用 学有所成 接下来 原因 困境 地址 官方 实际 情况 文章 案例 环境 编带 网站 行业 数据库的安全要保护哪些东西 数据库安全各自的含义是什么 生产安全数据库录入 数据库的安全性及管理 数据库安全策略包含哪些 海淀数据库安全审计系统 建立农村房屋安全信息数据库 易用的数据库客户端支持安全管理 连接数据库失败ssl安全错误 数据库的锁怎样保障安全 科技互联网项目 互联网科技战争 为想互联网科技 贷财互联网科技 深圳齐家互联网科技 中盈科技互联网信息有限公司 阿里巴巴算科技企业还是互联网 现代互联网科技股 中化能源互联网科技招聘 互联网科技有哪些公司 互联网经济与金融科技 互联网科技与大数据专业 速维有品互联网信息科技(苏州)有限公司 广州市恰铎互联网科技有限公司 链环科技传统企业怎么转型互联网 互联网新科技动漫ppt素材 山东有哪些互联网科技公司 网互联网络科技 恒生科技互联网指数十大成分股 颐高云石互联网科技 河南云网互联网络科技有限公司 互联网科技社 互联网科技logo设计 福州新华互联网科技学校 知乎 移动互联网科技股 来此购互联网科技有限公司 互联网科技公司实习生 崇明区互联网教育科技售后服务 互联网公司属于科技吗 互联网企业和网络科技有限公司
0