org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat at org.springframe
时间: 2023-08-27 22:21:06 浏览: 154
根据提供的引用内容来看,问题出现在启动嵌入式Tomcat时。错误信息是"org.springframework.boot.web.server.WebServerException: Unable to start embedded Tomcat"。原因是在应用程序的依赖中引用了Jackson相关的包,但是没有引用完整。你可以通过添加完整的依赖来解决这个问题。解决方案中提到添加以下依赖:
```
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-databind</artifactId>
<version>2.13.3</version>
<scope>compile</scope>
</dependency>
```
同时,你还需要在这个依赖中添加排除规则,以防止冲突:
```
<exclusions>
<exclusion>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
</exclusion>
</exclusions>
```
另外,还需要添加Jackson Annotations的依赖:
```
<dependency>
<groupId>com.fasterxml.jackson.core</groupId>
<artifactId>jackson-annotations</artifactId>
<version>2.9.8</version>
</dependency>
```
这样就可以解决引起Tomcat启动失败的问题了。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* [【图文详解】SpringBoot启动报错:Unable to start web server; nested exception is org.springframework...](https://blog.csdn.net/weixin_42168713/article/details/126407440)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
- *3* [搭建nacos集群启动时,报错Unable to start web... nested exception is org.springframework.boot.web.server](https://blog.csdn.net/qq_36220273/article/details/126786824)[target="_blank" data-report-click={"spm":"1018.2226.3001.9630","extra":{"utm_source":"vip_chatgpt_common_search_pc_result","utm_medium":"distribute.pc_search_result.none-task-cask-2~all~insert_cask~default-1-null.142^v92^chatsearchT0_1"}}] [.reference_item style="max-width: 50%"]
[ .reference_list ]
阅读全文