Skip to content

Gateway MVC: Predicates with multiple values via configuration not working (path, host, etc...) #3252

@fabian-dev

Description

@fabian-dev

Using the Path predicate with multiple paths fails with:

Unable to find operation interface org.springframework.web.servlet.function.RequestPredicate for path with args {_genkey_0=/foo, _genkey_1=/bar}

My application.yml is as follows.

cloud:
    gateway:
      mvc:
        routes:
          - id: some
            uri: https://some-url 
            predicates:
              - Path=/foo,/bar

Using a single path works.

I tested with Cloud Gateway MVC 4.1.1.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions