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

[Question] Can I use RateLimiter with my Spring Cloud Gateway? #5440

Open
ysu6691 opened this issue Feb 6, 2024 · 0 comments
Open

[Question] Can I use RateLimiter with my Spring Cloud Gateway? #5440

ysu6691 opened this issue Feb 6, 2024 · 0 comments
Labels
type: question Further information is requested

Comments

@ysu6691
Copy link

ysu6691 commented Feb 6, 2024

Question

I want to use ShenYu RateLimiter with my Spring Cloud Gateway.
I tried, but springCloud proxy wasn't applied.
Thank you for your reply.

// application.yml

server:
  port: 8000

spring:
  application:
    name: springCloudTest
  cloud:
    gateway:
      routes:
        - id: first-service
          uri: http://localhost:8083/
          predicates:
            - Path=/first-service/**
        - id: second-service
          uri: http://localhost:8084/
          predicates:
            - Path=/second-service/**

shenyu:
  register:
    registerType: http
    serverLists: http://localhost:9095
    props:
      username: admin
      password: 123456
  client:
    springCloud:
      props:
        contextPath: /spring
        addPrefixed: false

image

@ysu6691 ysu6691 added the type: question Further information is requested label Feb 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
type: question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant