我在Spring webflux上构建应用程序,并且因为Spring安全性webflux(v.M5)在异常处理方面的行为不像Spring 4而被卡住了.
我看到以下关于如何定制spring security webflux的帖子: 针对API的Spring webflux自定义身份验证
如果我们在ServerSecurityContextRepository.load中抛出异常,那么Spring会将http标头更新为500,而我无法操作此异常.
但是,控制器中抛出的任何错误都可以使用常规的@ControllerAdvice来处理,它只是弹出webflux安全性.
反正有没有处理spring webflux安全性中的异常?