getAuthentication

SpringBoot + WebFlux + Spring Security ,SecurityContextHolder.getContext().getAuthentication()获取不到当前用户

解决方案 直接在Controller接口方法参数中写入org.springframework.security.core.Authentication,如下: @GetMapping(path = "/test") public Mono<Response<?,?>> test(Authentica ......
共1篇  :1/1页 首页上一页1下一页尾页