From 4c70d9f0656bbec48fa619f2ec9aa0ee12fca2c1 Mon Sep 17 00:00:00 2001 From: wu <731351411@qq.com> Date: 星期一, 04 十二月 2023 09:04:51 +0800 Subject: [PATCH] Merge branch 'master' of http://10.153.19.25:10101/r/CanadaMes --- 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