ruoyi-cloud gatewayWeb application could not be started as there was no org.springframework.boot.web

这篇具有很好参考价值的文章主要介绍了ruoyi-cloud gatewayWeb application could not be started as there was no org.springframework.boot.web。希望对大家有所帮助。如果存在错误或未考虑完全的地方,请大家不吝赐教,您也可以点击"举报违法"按钮提交疑问。

ruoyi-cloud gatewayWeb application could not be started as there was no org.springframework.boot.web 异常。


16:30:26.042 [background-preinit] INFO  o.h.v.i.util.Version - [<clinit>,21] - HV000001: Hibernate Validator 6.2.5.Final
Spring Boot Version: 2.7.7
Spring Application Name: guoziwei-gateway
                            _                        _                                 
                           (_)                      | |                                
 _ __  _   _   ___   _   _  _  ______   __ _   __ _ | |_   ___ __      __  __ _  _   _ 
| '__|| | | | / _ \ | | | || ||______| / _` | / _` || __| / _ \\ \ /\ / / / _` || | | |
| |   | |_| || (_) || |_| || |        | (_| || (_| || |_ |  __/ \ V  V / | (_| || |_| |
|_|    \__,_| \___/  \__, ||_|         \__, | \__,_| \__| \___|  \_/\_/   \__,_| \__, |
                      __/ |             __/ |                                     __/ |
                     |___/             |___/                                     |___/ 
16:30:27.088 [main] INFO  c.a.n.c.r.client - [lambda$createClient$0,80] - [RpcClientFactory] create a new rpc client of ca0758e3-b2de-41c6-8469-81fd24c9cb8a_config-0
16:30:27.150 [main] INFO  o.r.Reflections - [scan,232] - Reflections took 40 ms to scan 1 urls, producing 3 keys and 6 values 
16:30:27.183 [main] INFO  o.r.Reflections - [scan,232] - Reflections took 18 ms to scan 1 urls, producing 4 keys and 9 values 
16:30:27.209 [main] INFO  o.r.Reflections - [scan,232] - Reflections took 23 ms to scan 1 urls, producing 3 keys and 10 values 
16:30:27.420 [main] INFO  o.r.Reflections - [scan,232] - Reflections took 208 ms to scan 252 urls, producing 0 keys and 0 values 
16:30:27.433 [main] INFO  o.r.Reflections - [scan,232] - Reflections took 12 ms to scan 1 urls, producing 1 keys and 5 values 
16:30:27.447 [main] INFO  o.r.Reflections - [scan,232] - Reflections took 12 ms to scan 1 urls, producing 1 keys and 7 values 
16:30:27.460 [main] INFO  o.r.Reflections - [scan,232] - Reflections took 11 ms to scan 1 urls, producing 2 keys and 8 values 
16:30:27.631 [main] INFO  o.r.Reflections - [scan,232] - Reflections took 168 ms to scan 252 urls, producing 0 keys and 0 values 
16:30:27.632 [main] INFO  c.a.n.c.r.client - [printIfInfoEnabled,60] - [ca0758e3-b2de-41c6-8469-81fd24c9cb8a_config-0] RpcClient init label, labels = {module=config, Vipserver-Tag=null, source=sdk, Amory-Tag=null, Location-Tag=null, taskId=0, AppName=unknown}
16:30:27.633 [main] INFO  c.a.n.c.r.client - [printIfInfoEnabled,60] - [ca0758e3-b2de-41c6-8469-81fd24c9cb8a_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda$335/609825180
16:30:27.633 [main] INFO  c.a.n.c.r.client - [printIfInfoEnabled,60] - [ca0758e3-b2de-41c6-8469-81fd24c9cb8a_config-0] Register server push request handler:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$$Lambda$336/268086000
16:30:27.634 [main] INFO  c.a.n.c.r.client - [printIfInfoEnabled,60] - [ca0758e3-b2de-41c6-8469-81fd24c9cb8a_config-0] Registry connection listener to current client:com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$1
16:30:27.635 [main] INFO  c.a.n.c.r.client - [printIfInfoEnabled,60] - [ca0758e3-b2de-41c6-8469-81fd24c9cb8a_config-0] RpcClient init, ServerListFactory = com.alibaba.nacos.client.config.impl.ClientWorker$ConfigRpcTransportClient$2
16:30:27.642 [main] INFO  c.a.n.c.r.client - [printIfInfoEnabled,60] - [ca0758e3-b2de-41c6-8469-81fd24c9cb8a_config-0] Try to connect to server on start up, server: {serverIp = '127.0.0.1', server main port = 8848}
16:30:29.238 [main] INFO  c.a.n.c.r.client - [printIfInfoEnabled,60] - [ca0758e3-b2de-41c6-8469-81fd24c9cb8a_config-0] Success to connect to server [127.0.0.1:8848] on start up, connectionId = 1689582629010_127.0.0.1_56851
16:30:29.238 [com.alibaba.nacos.client.remote.worker] INFO  c.a.n.c.r.client - [printIfInfoEnabled,60] - [ca0758e3-b2de-41c6-8469-81fd24c9cb8a_config-0] Notify connected event to listeners.
16:30:29.238 [main] INFO  c.a.n.c.r.client - [printIfInfoEnabled,60] - [ca0758e3-b2de-41c6-8469-81fd24c9cb8a_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$ConnectResetRequestHandler
16:30:29.239 [main] INFO  c.a.n.c.r.client - [printIfInfoEnabled,60] - [ca0758e3-b2de-41c6-8469-81fd24c9cb8a_config-0] Register server push request handler:com.alibaba.nacos.common.remote.client.RpcClient$$Lambda$345/2078470810
16:30:29.300 [main] WARN  c.a.c.n.c.NacosPropertySourceBuilder - [loadNacosData,87] - Ignore the empty nacos configuration and get it based on dataId[guoziwei-gateway] & group[DEFAULT_GROUP]
16:30:29.305 [main] WARN  c.a.c.n.c.NacosPropertySourceBuilder - [loadNacosData,87] - Ignore the empty nacos configuration and get it based on dataId[guoziwei-gateway.properties] & group[DEFAULT_GROUP]
16:30:29.308 [main] WARN  c.a.c.n.c.NacosPropertySourceBuilder - [loadNacosData,87] - Ignore the empty nacos configuration and get it based on dataId[guoziwei-gateway-dev.properties] & group[DEFAULT_GROUP]
16:30:29.314 [main] INFO  c.g.g.GuoZiWeiGatewayApplication - [logStartupProfileInfo,637] - The following 1 profile is active: "dev"
16:30:31.121 [main] WARN  o.s.b.w.s.c.AnnotationConfigServletWebServerApplicationContext - [refresh,591] - Exception encountered during context initialization - cancelling refresh attempt: org.springframework.context.ApplicationContextException: Unable to start web server; nested exception is org.springframework.boot.web.context.MissingWebServerFactoryBeanException: No qualifying bean of type 'org.springframework.boot.web.servlet.server.ServletWebServerFactory' available: Unable to start AnnotationConfigServletWebServerApplicationContext due to missing ServletWebServerFactory bean
16:30:31.169 [main] ERROR o.s.b.d.LoggingFailureAnalysisReporter - [report,40] - 

***************************
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.

16:30:31.171 [Thread-12] WARN  c.a.n.c.n.NotifyCenter - [shutdown,136] - [NotifyCenter] Start destroying Publisher
16:30:31.171 [Thread-12] WARN  c.a.n.c.n.NotifyCenter - [shutdown,153] - [NotifyCenter] Destruction of the end
16:30:31.171 [Thread-6] WARN  c.a.n.c.h.HttpClientBeanHolder - [shutdown,108] - [HttpClientBeanHolder] Start destroying common HttpClient
16:30:31.171 [Thread-6] WARN  c.a.n.c.h.HttpClientBeanHolder - [shutdown,114] - [HttpClientBeanHolder] Destruction of the end
Disconnected from the target VM, address: '127.0.0.1:56772', transport: 'socket'

Process finished with exit code 1

添加如下配置尝试

spring:
  main:
    web-application-type: REACTIVE

要检查配置的Spring Boot网关应用程序类型,您可以打开application.properties或application.yml文件,并查找以下属性:

spring:
  main:
    web-application-type: <type>

<type>的值将指示您配置的Web应用程序类型。它可以是以下之一:

  • SERVLET:适用于传统的基于Servlet的Web应用程序。
  • REACTIVE:适用于响应式Web应用程序,使用Spring WebFlux框架。

请注意,这只是一种常见的配置方法,实际的配置可能会因项目而异。文章来源地址https://www.toymoban.com/news/detail-722778.html

到了这里,关于ruoyi-cloud gatewayWeb application could not be started as there was no org.springframework.boot.web的文章就介绍完了。如果您还想了解更多内容,请在右上角搜索TOY模板网以前的文章或继续浏览下面的相关文章,希望大家以后多多支持TOY模板网!

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处: 如若内容造成侵权/违法违规/事实不符,请点击违法举报进行投诉反馈,一经查实,立即删除!

领支付宝红包赞助服务器费用

相关文章

  • 若依微服务版启动(RuoYi-Cloud)教程

    若依微服务版启动(RuoYi-Cloud)教程

    之前一直有小伙伴咨询若依微服务版如何在本地启动,今天简单的给大家介绍一下。 首先,学习Java的小伙伴应该对若依框架都应该有所了解,RuoYi-Cloud 是一个 Java EE 分布式 微服务架构平台,基于经典技术组合(Spring Boot、Spring Cloud Alibaba、Vue、Element),内置模块如:部门管

    2024年01月18日
    浏览(11)
  • 【云原生】3.5 RuoYi-Cloud部署实战(下)

    【云原生】3.5 RuoYi-Cloud部署实战(下)

     哈喽~大家好呀,这篇呢我们接着上篇来讲。  🥇个人主页:个人主页​​​​​              🥈 系列专栏:【云原生系列】 🥉与这篇相关的文章:             【云原生】3.2 Kubernetes 实战之多租户系统实战 【云原生】3.2 Kubernetes 实战之多租户系统实战_程序猿追的博

    2024年02月03日
    浏览(11)
  • 【Android Studio】安装app报错Installation did not succeed. The application could not be installed: INSTALL

    【Android Studio】安装app报错Installation did not succeed. The application could not be installed: INSTALL

    安装app demo报错;app安装不上 Installation did not succeed. The application could not be installed: INSTALL_FAILED_INSUFFICIENT_STORAGE The device needs more free storage to install the application (extra space is needed in addition to APK size). 程序或手机内存空间不足 清理程序内存:Build - Clean Project 清理手机内存:清理多

    2024年02月07日
    浏览(12)
  • The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

    The application could not be installed: INSTALL_PARSE_FAILED_MANIFEST_MALFORMED

    问题: 今天使用小米12手机连接Android Studio进行调试的时候,发现有一个这样的错误:  解决方法仅需2步,如下: 步骤1、在AndroidManifest.xml文件中,添加  android:exported=\\\"true\\\" 步骤2、在gradle.properties文件,添加  android.injected.testOnly=false  

    2024年02月11日
    浏览(15)
  • RuoYi-Cloud 若依微服务版启动教程(保姆级)

    RuoYi-Cloud 若依微服务版启动教程(保姆级)

    RuoYi-Cloud 是一个 Java EE 企业级快速开发平台,基于经典技术组合(Spring Boot、Spring Cloud Alibaba、Vue、Element),内置模块如:部门管理、角色用户、菜单及按钮授权、数据权限、系统参数、日志管理、代码生成等。在线定时任务配置;支持集群,支持多数据源。 1、系统环境 J

    2023年04月09日
    浏览(70)
  • Docker容器化部署若依微服务ruoyi-cloud项目

    Docker容器化部署若依微服务ruoyi-cloud项目

    接下来的内容以 Ubuntu 22.04.1 操作系统为例。 验证版本信息 Note: 在 CentOS7 上使用上述 yum 方式安装的 Docker ,默认自带了Docker Compose Plugin,不过命令是 docker compose 。 docker pull docker run docker images docker ps docker logs docker start docker stop docker restart docker rmi docker rm docker exec docker netwo

    2024年02月04日
    浏览(13)
  • 若依cloud(RuoYi-Cloud)新增业务模块和功能模块增删改查演示

    若依cloud(RuoYi-Cloud)新增业务模块和功能模块增删改查演示

    前言 看了几篇文章感觉都不太满意,索性自己来写一篇。 一、后端 后端新建业务模块流程大致如下: 看一下目录结构, business 就是我们自己的业务模块: 1.0 新建业务模块 就是在 ruoyi-module模块 下新建一个 springboot 工程模块,大家既然都学到cloud了,我相信这一步也不用多

    2024年02月17日
    浏览(12)
  • 若依框架(RuoYi-Cloud 微服务版本)134节视频教程

    RuoYi-Cloud 是一个 Java EE 分布式微服务架构平台,基于经典技术组合(Spring Boot、Spring Cloud Alibaba、Vue、Element),内置模块如:部门管理、角色用户、菜单及按钮授权、数据权限、系统参数、日志管理、代码生成等。在线定时任务配置;支持集群,支持多数据源。 在线体验 若依

    2024年02月13日
    浏览(10)
  • 结合ruoyi-cloud和ruoyi-app实现微信小程序的授权登录

    结合ruoyi-cloud和ruoyi-app实现微信小程序的授权登录

    原视频链接 https://www.bilibili.com/video/BV1mg4y1s75r/?spm_id_from=333.337.search-card.all.clickvd_source=c15794e732e28886fefab201ec9c6253 结合 RuoYi-Cloud 和 RuoYi-App 实现微信小程序的授权登录。 之前讲过前后端分离版的授权登录,逻辑大致一致,不同点有: 微信头像和昵称的获取方式。由于最新的本地

    2024年02月09日
    浏览(17)
  • 可能解决方法:The application could not be installed: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE

    可能解决方法:The application could not be installed: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE

    The application could not be installed: INSTALL_FAILED_SHARED_USER_INCOMPATIBLE 看网上很多文章都提到将AndroidManifest.xml中的 android:sharedUserId=“android.uid.system” 注释掉, 但是我们又需要使用到系统权限 自然也不想注释掉怎么办 ,下面就是解决方法

    2024年02月07日
    浏览(10)

觉得文章有用就打赏一下文章作者

支付宝扫一扫打赏

博客赞助

微信扫一扫打赏

请作者喝杯咖啡吧~博客赞助

支付宝扫一扫领取红包,优惠每天领

二维码1

领取红包

二维码2

领红包