update 使用 hutool-jwt 替换老旧 jjwt 依赖

This commit is contained in:
疯狂的狮子li
2021-11-30 10:33:35 +08:00
parent 230d19a7aa
commit 4f0e73ba97
4 changed files with 14 additions and 24 deletions

View File

@ -70,12 +70,6 @@
<artifactId>snakeyaml</artifactId>
</dependency>
<!-- Token生成与解析-->
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt</artifactId>
</dependency>
<!-- jdk11 缺失依赖 jaxb-->
<dependency>
<groupId>com.sun.xml.bind</groupId>

View File

@ -1,6 +1,5 @@
package com.ruoyi.common.constant;
import io.jsonwebtoken.Claims;
/**
* 通用常量信息
@ -106,7 +105,7 @@ public class Constants {
/**
* 用户名称
*/
public static final String JWT_USERNAME = Claims.SUBJECT;
public static final String JWT_USERNAME = "sub";
/**
* 用户头像