feat:实现动态响应处理
This commit is contained in:
parent
de7cf255b7
commit
975526b811
@ -24,8 +24,7 @@ public class ReactiveUserAuditor implements ReactiveAuditorAware<String> {
|
|||||||
@NonNull
|
@NonNull
|
||||||
public Mono<String> getCurrentAuditor() {
|
public Mono<String> getCurrentAuditor() {
|
||||||
return ReactiveSecurityContextHolder.getContext()
|
return ReactiveSecurityContextHolder.getContext()
|
||||||
.map(UserUtils::extractUserName)
|
.map(UserUtils::extractUserName);
|
||||||
.defaultIfEmpty("匿名用户");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user