Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

如何在springcloud3中开启openfeign对sentinel的支持 #3319

Open
ALI1416 opened this issue Jan 30, 2024 · 2 comments
Open

如何在springcloud3中开启openfeign对sentinel的支持 #3319

ALI1416 opened this issue Jan 30, 2024 · 2 comments

Comments

@ALI1416
Copy link

ALI1416 commented Jan 30, 2024

如何在springcloud3中开启openfeign对sentinel的支持

springcloud 2.x的配置

feign:
  sentinel:
  enabled: true
@IsUnderAchiever
Copy link

我也遇到了这个问题,springboot3.0.2、spring cloud2022.0.0-RC2、spring cloud alibaba2022.0.0.0-RC2开启这个配置之后启动就报错Error creating bean with name 'feignSentinelBuilder' defined in class path resource [com/alibaba/cloud/sentinel/feign/SentinelFeignAutoConfiguration.class]: Post-processing of merged bean definition failed

java.lang.ClassNotFoundException: org.springframework.cloud.openfeign.FeignClientFactory

导入了spring-cloud-starter-openfeign 、 spring-cloud-starter-alibaba-sentinel、spring-cloud-starter-alibaba-nacos-discovery、spring-cloud-loadbalancer的依赖

@robberphex
Copy link
Collaborator

有示例工程么?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants