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

网上搜的大多是要要排除其他依赖的spring-boot-starter-web,因为会与spring cloud gateway的webflux冲突。但是我使用springcloud2021.0.0版本的gateway&#xff0c

网上搜的大多是要要排除其他依赖的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>

发布者:admin,转转请注明出处:http://www.yc00.com/web/1738335132a4038713.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信