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” 一定要大写