jwt依赖
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt</artifactId>
</dependency>
第一步,定义一个秘钥
#秘钥
jwt.secret= 76bd425b6f29f7fcc2e0bfc286043df1
//引入秘钥
@Value("${jwt.secret}")
private String secret
jwt依赖
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt</artifactId>
</dependency>
第一步,定义一个秘钥
#秘钥
jwt.secret= 76bd425b6f29f7fcc2e0bfc286043df1
//引入秘钥
@Value("${jwt.secret}")
private String secret