Unable to find GatewayFilterFactory

清尘V 发布于 2019/06/21 17:32
阅读 2K+
收藏 0

各位大神,springboot2集成gateway限流报这个错误 帮忙看看咋回事吧

server:
  port: 9005
info:
  app:
    name: Gateway
    desc: 开发环境网关
eureka:
  client:
    register-with-eureka: true
    fetch-registry: true
    serviceUrl:
      #注册中心的地址
      defaultZone: http://127.0.0.1:9001/eureka/
logging:
  level:
    org.springframework.cloud.gateway: debug
  config: classpath:logback.xml
spring:
  redis:
    host: 192.168.31.243
    password:
    port: 6379
    database: 1
  application:
    name: gateway
  cloud:
    gateway:
      discovery:
        locator:
          enabled: true
          lower-case-service-id: true
      routes:
        - id: requestratelimiter_route
          uri: lb://SERVER-1
          filters:
            - name: RequestRateLimiter
              args:
                redis-rate-limiter.replenishRate: 1
                redis-rate-limiter.burstCapacity: 20
                key-resolver: "#{@ipKeyResolver}"
          predicates:
            - Method=GET



 

加载中
OSCHINA
登录后可查看更多优质内容
返回顶部
顶部