Skip to content
This repository has been 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

Open
SudBisht opened this issue Jan 8, 2020 · 4 comments

Comments

@SudBisht
Copy link

SudBisht commented Jan 8, 2020

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.

@spencergibb
Copy link
Contributor

Can you provide a complete, minimal, verifiable sample that reproduces the problem? It should be available as a GitHub (or similar) project or attached to this issue as a zip file.

@SudBisht
Copy link
Author

SudBisht commented Jan 8, 2020

@spencergibb here is the sample app

@spencergibb
Copy link
Contributor

please remove all db requirements and anything not needed to replicate the problem.

@SudBisht
Copy link
Author

SudBisht commented Jan 8, 2020

@spencergibb removed unnecessary dependencies.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Development

No branches or pull requests

3 participants