Java 我可以在SpringWebFlux上实现WebSecurity配置适配器吗

Java 我可以在SpringWebFlux上实现WebSecurity配置适配器吗,java,spring,spring-boot,spring-webflux,Java,Spring,Spring Boot,Spring Webflux,我目前正在使用Springs的WebFlux,我想实现Spring安全性。我正在努力使我的websecurityConfigureAdapterhttp规则正常工作,我认为这是因为HttpSecurity更改没有效果。我会解释我的意思: 我选择实现具有方法签名的websecurityConfigureAdapter protected void configure(HttpSecurity http) throws Exception 这已正确配置,但我的所有端点都接收到未经授权的401(这是

我目前正在使用Springs的WebFlux,我想实现Spring安全性。我正在努力使我的
websecurityConfigureAdapter
http规则正常工作,我认为这是因为
HttpSecurity
更改没有效果。我会解释我的意思:

我选择实现具有方法签名的
websecurityConfigureAdapter

protected void configure(HttpSecurity http) throws Exception
这已正确配置,但我的所有端点都接收到未经授权的
401
(这是典型的未拾取配置,而是使用默认配置)。相反,当我查看WebFluxSecurity的实现时,它们通常实现具有以下签名的Bean:

public SecurityWebFilterChain securitygWebFilterChain(
  ServerHttpSecurity http)
我知道很多WebFlux架构实现了一组不同于典型Spring的请求和响应对象,因此我想知道是否必须实现
WebFlux
安全性方法,或者更标准的
WebSecurity配置适配器
安全性实现方法是否仍然有效


干杯

WebFluxSecurity
使用
ServerHttpSecurity
过滤请求。
WebSecurity
使用
HttpSecurity
javax.servlet.Filter
来过滤请求

它是不同的类和不同的实现,覆盖:

protected void configure(HttpSecurity http) throws Exception

不起作用

您在初学者中见过这个吗?