I want to read the path attribute defined in yml cofiguration of spring cloud gateway app in filter code:
spring:
cloud:
gateway:
routes:
- id: DEMO gateway service
uri: ${DEMO_URL}
predicates:
- Path=/api/demo/**, /api/get/**
How can I read these paths in my code?