Skip to content
This repository was archived by the owner on Apr 5, 2022. It is now read-only.
This repository was archived by the owner on Apr 5, 2022. It is now read-only.

Spring Cloud Gateway java based RouteLocator not working with Spring Cloud Security #230

@SudBisht

Description

@SudBisht

Describe the bug
spring cloud version: "Greenwich.SR2"
While using the Java-based configuration, not working with spring security.

on accessing URL getting

"No matching handler"

but in case of YAML based configuration working fine.

Sample
in YAML based configuration can see logs like :
o.s.cloud.gateway.config.GatewayProperties.setRoutes] - Routes supplied from Gateway Properties: [RouteDefinition{id='web-example-service', predicates=[PredicateDefinition{name='Path', args={_genkey_0=/abc/**}}], filters=[FilterDefinition{name='RequestRateLimiter', args={redis-rate-limiter.replenishRate=5, Key-resolver=#{@keyResolverDemo}, redis-rate-limiter.burstCapacity=10}}, FilterDefinition{name='RewritePath', args={_genkey_0=/abc/(?<segment>.*), _genkey_1=/$\{segment}}}], uri=http://localhost:8181, order=0}

In the case of java Based Configuration, there are no such logs.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions