gateway报错Parameter 2 of method redisRateLimiter in org.springframework.cloud.gateway.config.GatewayR
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相关推荐
- spring-cloud-gateway报错Failed to bind properties under ‘‘ to org.springframework.cloud.gateway.handle
目录 报错信息 解决办法 原因 错误示范 正确示范 解决办法 报错信息 如果是动态刷新路由报如下错误的话: reactor.core.Exceptions$ErrorCallbackNotImplem ...
- 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 ...
- springboot启动报错Parameter 0 of method a in com.* required a bean of type 'java.lang.String' that could
springboot服务启动报错,报错信息如下 *************************** APPLICATION FAILED TO START ******************** ...
- 【微服务】 网关启动报错 Consider defining a bean of type org.springframework.http.codec.ServerCodecConfigurer
一.现象 微服务启动时报错:Consider defining a bean of type 'org.springframework.http.codec.ServerCodecConfigurer ...
- 添加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 ...
- 解决报错Parameter 0 of constructor in XXX required a bean...elasticsearch 继承ElasticsearchConfiguration方法
SpringBoot中构建带有含参构造函数的Bean,解决报错Parameter 0 of constructor in XXX required a bean ,elasticsearch继承Abs ...
- 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' ...
- 报错:org.springframework.cloud.gateway.support.NotFoundException: Unable to find instance for localhos
微服务报错:org.springframework.cloud.gateway.support.NotFoundException: Unable to find instance for local ...
- Structured Streaming报错记录:Overloaded method foreachBatch with alternatives
Structured Streaming报错记录:Overloaded method foreachBatch with alternatives [文章目录] Structured Streamin ...
- Parameter 0 of method linkDiscoverers in org.springframework.hateoas.config.HateoasConfiguration
今天用SpringBoot2.3.0整合swagger2.2.2版本的时候,启动SpringBoot报如下错: Error starting ApplicationContext. To displa ...
最新文章
- python天天学怎么样-Python天天学_03_基础三
- 接口超时后程序还会继续执行嘛_答网友问:分析一段STL程序,并就如何读懂一段程序谈几点感想...
- 设置ALV不同行的小数点位数
- 数据分析TB级别数据量大了怎么办,不会代码模型训练怎么办?
- js中数组的操作方法
- 界面设计02 - 零基础入门学习Delphi43
- 在VS上部署OpenGL
- 操作vsam用sequential访问模式REWRITE数据
- js 访问android 路径,Android与JS进行交互传文件路径
- Linux系统安全防护加固
- CNCF landscape 云原生 敏捷开发
- [数分提高]2014-2015-2第2教学周第1次课
- Android 控件 之 菜单(Menu)
- 渗透测试工程师(实习生)面试题目
- 【蓝桥杯】Java_B组2015年省赛真题
- 订餐系统java+mybatis+mysql8项目练习(二) 添加订单项
- 【笔记总结】高中英语——其二:名词性从句
- 7-5 循环日程表 (10 分)
- SessionFactory的创建和Session的获得
- 【学习笔记】Python基础入门知识笔记,万字攻略带你走进Python编程