广告
返回顶部
首页 > 资讯 > 后端开发 > JAVA >已解决:SpringBoot启动报错:Unable to start web server; nested exception is org.springframework.boot.web
  • 357
分享到

已解决:SpringBoot启动报错:Unable to start web server; nested exception is org.springframework.boot.web

springboot前端java 2023-09-25 08:09:51 357人浏览 薄情痞子
摘要

文章目录 报错信息报错原因解决方案:引用完整的依赖 报错信息 org.springframework.context.ApplicationContextException: Unab

文章目录

报错信息

org.springframework.context.ApplicationContextException: Unable to start WEB server; nested exception is org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcatat 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]    ......

报错原因

查了一些解决方案,但是最后发现这个报错是因为:在pom引用了jackson相关包,但没有引用完整导致的

<dependency>     <groupId>com.fasterxml.jackson.core</groupId>     <artifactId>jackson-databind</artifactId>     <version>2.13.3</version>     <scope>compile</scope></dependency>

这个Jackson 是当前用的比较广泛的,用来序列化和反序列化 JSON 的 Java 的开源框架

解决方案:引用完整的依赖

<dependency>    <groupId>com.fasterxml.jackson.core</groupId>    <artifactId>jackson-databind</artifactId>        <exclusions>            <exclusion>                <groupId>com.fasterxml.jackson.core</groupId>                <artifactId>jackson-annotations</artifactId>            </exclusion>        </exclusions></dependency><dependency>    <groupId>com.fasterxml.jackson.core</groupId>    <artifactId>jackson-annotations</artifactId>    <version>2.9.8</version></dependency>

来源地址:https://blog.csdn.net/qq_43408367/article/details/128361675

--结束END--

本文标题: 已解决:SpringBoot启动报错:Unable to start web server; nested exception is org.springframework.boot.web

本文链接: https://www.lsjlt.com/news/417226.html(转载时请注明来源链接)

有问题或投稿请发送至: 邮箱/279061341@qq.com    QQ/279061341

本篇文章演示代码以及资料文档资料下载

下载Word文档到电脑,方便收藏和打印~

下载Word文档
猜你喜欢
软考高级职称资格查询
编程网,编程工程师的家园,是目前国内优秀的开源技术社区之一,形成了由开源软件库、代码分享、资讯、协作翻译、讨论区和博客等几大频道内容,为IT开发者提供了一个发现、使用、并交流开源技术的平台。
  • 官方手机版

  • 微信公众号

  • 商务合作