gateway报错Parameter 2 of method redisRateLimiter in org.springframework.cloud.gateway.config.GatewayRedisAutoConfiguration required a bean of type ‘org.springframework.cloud.gateway.support.ConfigurationService’ that could not be found.

问题:gateway测试限流启动报错

Parameter 2 of method redisRateLimiter in org.springframework.cloud.gateway.config.GatewayRedisAutoConfiguration required a bean of type ‘org.springframework.cloud.gateway.support.ConfigurationService’ that could not be found.

gateway配置

cloud:gateway:enabled: falseroutes:- id: provider-service-id#uri: http://localhost:8081uri: lb://provider-servicepredicates:- Path= /provider/**filters:- name: RequestRateLimiterargs:key-resolver: '#{@ipResolver}'redis-rate-limiter.replenishRate: 1redis-rate-limiter.burstCapacity: 2

原因:

神戳戳的设置了这个gateway:enabled: false

解决:

改为true或者直接删掉

见笑了,如果还有人犯这么低级错误,希望能帮到你。

gateway报错Parameter 2 of method redisRateLimiter in org.springframework.cloud.gateway.config.GatewayR相关推荐

  1. spring-cloud-gateway报错Failed to bind properties under ‘‘ to org.springframework.cloud.gateway.handle

    目录 报错信息 解决办法 原因 错误示范 正确示范 解决办法 报错信息 如果是动态刷新路由报如下错误的话: reactor.core.Exceptions$ErrorCallbackNotImplem ...

  2. Springboot集成Swagger报错Parameter 0 of method linkDiscoverers in org.springframework.hateoas.config.Hat

    第一次尝试使用springboot完成后端开发,在做demo的过程中集成swagger发生报错. 其中,swagger版本为2.2.2,springboot版本为2.3.4 觉得可能是版本不匹配,将s ...

  3. springboot启动报错Parameter 0 of method a in com.* required a bean of type 'java.lang.String' that could

    springboot服务启动报错,报错信息如下 *************************** APPLICATION FAILED TO START ******************** ...

  4. 【微服务】 网关启动报错 Consider defining a bean of type org.springframework.http.codec.ServerCodecConfigurer

    一.现象 微服务启动时报错:Consider defining a bean of type 'org.springframework.http.codec.ServerCodecConfigurer ...

  5. 添加https后反向代理gateway报错io.netty.handler.ssl.NotSslRecordException: not an SSL/TLS record

    添加https后反向代理gateway报错 2023-02-17 14:19:05.328 [reactor-http-epoll-4] ------ ERROR c..si.gateway.exce ...

  6. 解决报错Parameter 0 of constructor in XXX required a bean...elasticsearch 继承ElasticsearchConfiguration方法

    SpringBoot中构建带有含参构造函数的Bean,解决报错Parameter 0 of constructor in XXX required a bean ,elasticsearch继承Abs ...

  7. tomcat 报错 Status 500 - Mapper method ‘xxxxx‘ has an unsupported return type: class xxx

    myBatis 接口写了 insert ,对应的dao层里写的返回值是一个实体类 User add(User user); 报错 Status 500 - Mapper method 'xxxxx' ...

  8. 报错:org.springframework.cloud.gateway.support.NotFoundException: Unable to find instance for localhos

    微服务报错:org.springframework.cloud.gateway.support.NotFoundException: Unable to find instance for local ...

  9. Structured Streaming报错记录:Overloaded method foreachBatch with alternatives

    Structured Streaming报错记录:Overloaded method foreachBatch with alternatives [文章目录] Structured Streamin ...

  10. Parameter 0 of method linkDiscoverers in org.springframework.hateoas.config.HateoasConfiguration

    今天用SpringBoot2.3.0整合swagger2.2.2版本的时候,启动SpringBoot报如下错: Error starting ApplicationContext. To displa ...

最新文章

  1. python天天学怎么样-Python天天学_03_基础三
  2. 接口超时后程序还会继续执行嘛_答网友问:分析一段STL程序,并就如何读懂一段程序谈几点感想...
  3. 设置ALV不同行的小数点位数
  4. 数据分析TB级别数据量大了怎么办,不会代码模型训练怎么办?
  5. js中数组的操作方法
  6. 界面设计02 - 零基础入门学习Delphi43
  7. 在VS上部署OpenGL
  8. 操作vsam用sequential访问模式REWRITE数据
  9. js 访问android 路径,Android与JS进行交互传文件路径
  10. Linux系统安全防护加固
  11. CNCF landscape 云原生 敏捷开发
  12. [数分提高]2014-2015-2第2教学周第1次课
  13. Android 控件 之 菜单(Menu)
  14. 渗透测试工程师(实习生)面试题目
  15. 【蓝桥杯】Java_B组2015年省赛真题
  16. 订餐系统java+mybatis+mysql8项目练习(二) 添加订单项
  17. 【笔记总结】高中英语——其二:名词性从句
  18. 7-5 循环日程表 (10 分)
  19. SessionFactory的创建和Session的获得
  20. 【学习笔记】Python基础入门知识笔记,万字攻略带你走进Python编程

热门文章

  1. 【C语言】学习gotoxy() 与 clrscr() 函数
  2. 机房巡检知识点(一)
  3. QGIS教程—缓冲区buffer
  4. Web前端开发工程师需要掌握哪些核心技能?
  5. 测试工具apipost postman jmeter
  6. 【通信协议】I2S/IIS总线介绍
  7. pythonturtle编程_Python编程小记:turtle库
  8. JavaScript实现在线Cron表达式生成器、预览工具 -toolfk程序员在线工具网
  9. Java后台推送离线通知
  10. 【科研】如何查看自己期刊是不是SCI/EI(含期刊各种信息查询)