mirror of
https://github.com/RemainderTime/spring-boot-base-demo.git
synced 2026-04-21 19:27:32 +08:00
说明文档修订
This commit is contained in:
23
README.md
23
README.md
@@ -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支持
|
编码不易,欢迎点击右上角star支持
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@@ -60,8 +60,8 @@ public class JwtTokenUtils {
|
|||||||
// build token
|
// build token
|
||||||
// param backups {iss:Service, aud:APP}
|
// param backups {iss:Service, aud:APP}
|
||||||
String token = JWT.create().withHeader(map)
|
String token = JWT.create().withHeader(map)
|
||||||
.withClaim("iss", "ll-app-business")
|
.withClaim("iss", "xf-boot-base")
|
||||||
.withClaim("aud", "APP")
|
.withClaim("aud", "demo")
|
||||||
.withClaim(USER_ID, String.valueOf(userId))
|
.withClaim(USER_ID, String.valueOf(userId))
|
||||||
.withIssuedAt(iatDate)
|
.withIssuedAt(iatDate)
|
||||||
// .withExpiresAt(expiresDate)
|
// .withExpiresAt(expiresDate)
|
||||||
|
|||||||
@@ -16,7 +16,7 @@ import java.util.Map;
|
|||||||
/**
|
/**
|
||||||
* @program: xf-boot-base
|
* @program: xf-boot-base
|
||||||
* @ClassName RSAUtils
|
* @ClassName RSAUtils
|
||||||
* @description:
|
* @description: 加密工具类
|
||||||
* @author: xiongfeng
|
* @author: xiongfeng
|
||||||
* @create: 2022-06-20 10:37
|
* @create: 2022-06-20 10:37
|
||||||
**/
|
**/
|
||||||
|
|||||||
Reference in New Issue
Block a user