Explorar o código

标记 ServletUtil 的 getUserId 方法为弃用

reghao %!s(int64=2) %!d(string=hai) anos
pai
achega
680fc13627
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      web/src/main/java/cn/reghao/jutil/web/ServletUtil.java

+ 1 - 0
web/src/main/java/cn/reghao/jutil/web/ServletUtil.java

@@ -46,6 +46,7 @@ public class ServletUtil {
         return auth.replace("Bearer ", "");
     }
 
+    @Deprecated
     public static String getUserId() {
         String userId = getRequest().getHeader("x-user-id");
         return  userId != null ? userId : "-1";