springcloud的gateway报错:Unable to find RoutePredicateFactory with name path

  • Post author:
  • Post category:其他


Unable to find RoutePredicateFactory with name path

解决方法:

predicates:

  • Path=/payment/get/**

    P 一定要大写

server:
  port: 10010
spring:
  application:
    name: api-gateway
  cloud:
    gateway:
      routes:
        - id: user-service-route
          uri: http://localhost:9091
          predicates:
            - Path=/user/**
eureka:
  client:
    service-url:
      defaultZone: http://localhost:10086/eureka
  instance:
    prefer-ip-address: true

predicates:

– Path=/user/**

“P” 一定要大写



版权声明:本文为qq_45556655原创文章,遵循 CC 4.0 BY-SA 版权协议,转载请附上原文出处链接和本声明。