最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

Consider defining a bean of type ‘org.springframework.cloud.gateway.filter.factory.SpringCloudCircui

运维笔记admin3浏览0评论

网上搜的大多是要要排除其他依赖的spring-boot-starter-web,因为会与spring cloud gateway的webflux冲突。但是我使用springcloud2021.0.0版本的gateway,即使项目中没有依赖spring-boot-starter-web依然会报这个错。
解决方法(参考官方文档)添加依赖:

 <dependency>
            <groupId>org.springframework.cloud</groupId>
            <artifactId>spring-cloud-starter-circuitbreaker-reactor-resilience4j</artifactId>
</dependency>

与本文相关的文章

发布评论

评论列表(0)

  1. 暂无评论