说明文档修订

This commit is contained in:
xiongfeng
2023-12-07 10:27:33 +08:00
parent 67bf832c4a
commit a9b57a181d
3 changed files with 24 additions and 5 deletions

View File

@@ -1,4 +1,23 @@
# spring-boot-base-demo
拿来即用springboot基础项目
# 拿来即用springboot基础项目
---
技术栈 | 名称
-------- | -----
Spring boot | 2.4.6
JWT | 身份验证和授权
RSA | 数据加密
MybatisPlus | 持久层框架
MYSQL | 数据库
Hikari | 数据库连接池
Reids | 数据缓存
knife4j | 接口文档
thymeleaf | 模版引擎
docker | 容器Dockerfile
---
编码不易欢迎点击右上角star支持

View File

@@ -60,8 +60,8 @@ public class JwtTokenUtils {
// build token
// param backups {iss:Service, aud:APP}
String token = JWT.create().withHeader(map)
.withClaim("iss", "ll-app-business")
.withClaim("aud", "APP")
.withClaim("iss", "xf-boot-base")
.withClaim("aud", "demo")
.withClaim(USER_ID, String.valueOf(userId))
.withIssuedAt(iatDate)
// .withExpiresAt(expiresDate)

View File

@@ -16,7 +16,7 @@ import java.util.Map;
/**
* @program: xf-boot-base
* @ClassName RSAUtils
* @description:
* @description: 加密工具类
* @author: xiongfeng
* @create: 2022-06-20 10:37
**/