refactor: 优化上下文传递

This commit is contained in:
zhouhao
2025-08-04 14:06:53 +08:00
parent 2dbb9c7cc0
commit 3f7e040c44
6 changed files with 71 additions and 2 deletions

View File

@@ -10,7 +10,7 @@ import javax.annotation.Nonnull;
public class AuthenticationThreadLocalAccessor
implements ThreadLocalAccessor<Authentication> {
static final String KEY = "cp.hs.auth";
static final Object KEY = Authentication.class;
static {
ReactiveAuthenticationHolder.addSupplier(