【问题标题】:What is the difference between @EnableWebSecurity and @EnableWebFluxSecurity?@EnableWebSecurity 和 @EnableWebFluxSecurity 有什么区别?
【发布时间】:2020-11-09 08:40:20
【问题描述】:

@EnableWebSecurity 和@EnableWebFluxSecurity 从安全的上下文来看有什么区别?

我正在尝试使用 Spring Cloud Gateway,它在下游支持很少的反应式微服务。也很少有正常的网络服务。并希望在 API 网关中使用 @EnableWebSecuirty。那么这也适用于响应式服务吗?

【问题讨论】:

    标签: spring-security spring-webflux spring-security-oauth2 spring-cloud-gateway


    【解决方案1】:

    它们都具有相同的安全语义,但 @EnableWebSecurity 用于 MVC 堆栈,而 @EnableWebFluxSecurity 用于反应堆栈(启用 Spring Security WebFlux)。

    【讨论】:

      猜你喜欢
      • 2015-03-10
      • 2017-11-24
      • 2010-10-02
      • 2011-12-12
      • 2010-09-16
      • 2012-03-14
      • 2012-02-06
      • 2011-02-25
      • 2011-11-22
      相关资源
      最近更新 更多