2

What is the difference between @EnableWebSecurity and @EnableWebFluxSecurity from the context of security?

I am trying to use a Spring Cloud Gateway which supports few reactive Micro-services in the downstream. And few normal web services as well. And wanted to user @EnableWebSecuirty in the API Gateway. So will that work with reactive Services as well?

Marco Lackovic
  • 6,077
  • 7
  • 55
  • 56
thaher majeed
  • 76
  • 1
  • 7

1 Answers1

4

They both have same security semantics, but @EnableWebSecurity is used in a MVC stack whereas @EnableWebFluxSecurity is used in the reactive stack (enabling Spring Security WebFlux).

Piotr Wittchen
  • 3,853
  • 4
  • 26
  • 39
Stuck
  • 11,225
  • 11
  • 59
  • 104