1.引入JsonWebToken依赖
<dependency>
<groupId>io.jsonwebtoken</groupId>
<artifactId>jjwt</artifactId>
<version>0.9.1</version>
</dependency>
2.配置工具类JwtTokenUtils
package com.example.springbootdemo.common.utils;
import com.example.springbootdemo.model.User;
import io.