mirror of
https://github.com/hs-web/hsweb-framework.git
synced 2026-05-31 18:03:52 +08:00
又一波重构
This commit is contained in:
@@ -13,6 +13,7 @@ public class FluxTestController {
|
||||
|
||||
@GetMapping
|
||||
public Mono<Authentication> getUser() {
|
||||
|
||||
return Authentication
|
||||
.currentReactive()
|
||||
.switchIfEmpty(Mono.error(UnAuthorizedException::new));
|
||||
|
||||
Reference in New Issue
Block a user