From f4c88a49217a99b017e67b4c0ccca1432774111a Mon Sep 17 00:00:00 2001 From: CeDo <cedoogle@gmail.com> Date: 星期一, 17 五月 2021 14:36:51 +0800 Subject: [PATCH] bugfixed:59 --- springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/constants/TokenConstant.java | 24 ++++++++++++++++++++++++ 1 files changed, 24 insertions(+), 0 deletions(-) diff --git a/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/constants/TokenConstant.java b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/constants/TokenConstant.java new file mode 100644 index 0000000..734c2b8 --- /dev/null +++ b/springcloud_k8s_panzhihuazhihuishequ/common/src/main/java/com/panzhihua/common/constants/TokenConstant.java @@ -0,0 +1,24 @@ +package com.panzhihua.common.constants; + +/** + * @program: springcloud_k8s_panzhihuazhihuishequ + * @description: token + * @author: huang.hongfa weixin hhf9596 qq 959656820 + * @create: 2020-11-24 14:44 + **/ +public class TokenConstant { + + public static final String TOKEN_HEADER="Authorization"; + public static final String TOKEN_LOGOUT="token_logout"; + public static final String TOKEN_PRE="Bearer "; + public static final String TOKEN_USERINFO="token_userinfo"; + /** + * 30分钟 + */ + public static final int EXPIRETIME=300; + public static final String SECRET="UTivpbn%n9O!KnnL"; + /** + * 24小时 + */ + public static final int EXPIRETIME_REFRESH=24; +} -- Gitblit v1.7.1