From dc31792dc1b8ad1658e49ba8fce9a1be924e6fbb Mon Sep 17 00:00:00 2001
From: wu <731351411@qq.com>
Date: 星期四, 30 十一月 2023 08:44:04 +0800
Subject: [PATCH] 理片笼测试修改

---
 springboot-vue3/src/main/java/com/example/springboot/security/constant/SystemConstant.java |   27 +++++++++++++++++++++++++++
 1 files changed, 27 insertions(+), 0 deletions(-)

diff --git a/springboot-vue3/src/main/java/com/example/springboot/security/constant/SystemConstant.java b/springboot-vue3/src/main/java/com/example/springboot/security/constant/SystemConstant.java
new file mode 100644
index 0000000..1a99f01
--- /dev/null
+++ b/springboot-vue3/src/main/java/com/example/springboot/security/constant/SystemConstant.java
@@ -0,0 +1,27 @@
+package com.example.springboot.security.constant;
+
+public class SystemConstant {
+
+    /**
+     * 瑙掕壊鐨刱ey
+     **/
+    public static final String ROLE_CLAIMS = "rol";
+    /**
+     * rememberMe 涓� false 鐨勬椂鍊欒繃鏈熸椂闂存槸1涓皬鏃�
+     */
+    public static final long EXPIRATION = 60 * 60 * 24L;
+
+    /**
+     * rememberMe 涓� true 鐨勬椂鍊欒繃鏈熸椂闂存槸7澶�
+     */
+    public static final long EXPIRATION_REMEMBER = 60 * 60 * 24 * 7L;
+
+    /**
+     * JWT绛惧悕瀵嗛挜纭紪鐮佸埌搴旂敤绋嬪簭浠g爜涓紝搴旇瀛樻斁鍦ㄧ幆澧冨彉閲忔垨.properties鏂囦欢涓��
+     */
+    public static final String JWT_SECRET_KEY = "C*F-JaNdRgUkXn2r5u8x/A?D(G+KbPeShVmYq3s6v9y$B&E)H@McQfTjWnZr4u7w";
+
+    // JWT token defaults
+    public static final String TOKEN_HEADER = "Authorization";
+    public static final String TOKEN_TYPE = "JWT";
+}
\ No newline at end of file

--
Gitblit v1.8.0