使用Spring Boot,SpringMVC和Spring Security我可以按如下方式配置Spring Boot应用程序的安全部分:...requestMatchers(EndpointRequest.to("status", "info"))....
。
现在我从SpringMVC迁移到Spring WebFlux。我发现我使用pathMatchers()
代替requestMatchers
。但是,EndpointRequest
取决于HttpServletRequest
(因此依赖于Spring MVC)。任何提示都表示赞赏。