Unable to start web server; nested exception is org.springframework.boot.web.server.
时间: 2023-09-21 09:11:48 浏览: 56
Unable to start web server是一个Spring Boot应用程序启动时的错误消息。该错误消息表明应用程序无法启动Web服务器。具体的错误原因是由于缺少ServletWebServerFactory bean导致的。
在Spring Framework 5.0之前,Spring MVC是主要的Web框架,它依赖于Servlet API。然而,从Spring Framework 5.0开始,引入了一个新的响应式Web框架,称为Spring WebFlux,它是完全异步和非阻塞的。而Spring Cloud Gateway是一个基于响应式编程(WebFlux)的网关,因此它需要依赖于Servlet API。因此,当启动Spring Cloud Gateway时,它会寻找ServletWebServerFactory bean,但由于缺少该bean,导致无法启动Web服务器。<span class="em">1</span><span class="em">2</span><span class="em">3</span>
#### 引用[.reference_title]
- *1* *2* *3* [gateway网关启动报错 uable to start web ... nested exception is org.springframework.context.Application](https://blog.csdn.net/qq_37158147/article/details/126907742)[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^v93^chatsearchT3_2"}}] [.reference_item style="max-width: 100%"]
[ .reference_list ]