From ac9fdd5c764616c222401f27a46e88a09ba1f0eb Mon Sep 17 00:00:00 2001
From: shengzhang <2393584716@qq.com>
Date: Mon, 14 Dec 2020 23:01:15 +0800
Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E6=96=87=E6=A1=A3...?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
sa-token-doc/doc/README.md | 4 ++--
sa-token-doc/doc/use/dao-extend.md | 16 ++++++++++++++--
sa-token-doc/doc/use/login-auth.md | 2 +-
3 files changed, 17 insertions(+), 5 deletions(-)
diff --git a/sa-token-doc/doc/README.md b/sa-token-doc/doc/README.md
index 9c347379..1afe2ad7 100644
--- a/sa-token-doc/doc/README.md
+++ b/sa-token-doc/doc/README.md
@@ -2,10 +2,10 @@
sa-token v1.4.0
-一个JavaWeb权限认证框架,强大、简单、好用
+一个JavaWeb轻量级权限认证框架,功能全面,上手简单
+
-
diff --git a/sa-token-doc/doc/use/dao-extend.md b/sa-token-doc/doc/use/dao-extend.md
index 99754993..2c134b14 100644
--- a/sa-token-doc/doc/use/dao-extend.md
+++ b/sa-token-doc/doc/use/dao-extend.md
@@ -5,8 +5,20 @@
- 你需要做的就是重写`sa-token`的dao层实现方式,参考以下方案:
-## 具体代码
-- 新建文件`SaTokenDaoRedis.java`,实现接口`SaTokenDao`, 并加上注解`@Component`,保证此类被springboot扫描到
+
+### 1. 首先在pom.xml引入依赖
+``` xml
+
+
+ org.springframework.boot
+ spring-boot-starter-redis
+ RELEASE
+
+```
+
+
+### 2. 实现SaTokenDao接口
+新建文件`SaTokenDaoRedis.java`,实现接口`SaTokenDao`, 并加上注解`@Component`,保证此类被springboot扫描到
- 代码参考:
```java
diff --git a/sa-token-doc/doc/use/login-auth.md b/sa-token-doc/doc/use/login-auth.md
index 36c98613..c7a7962f 100644
--- a/sa-token-doc/doc/use/login-auth.md
+++ b/sa-token-doc/doc/use/login-auth.md
@@ -36,7 +36,7 @@
#### StpUtil.getLoginId(T defaultValue)
- 获取当前会话登录id, 如果未登录,则返回默认值 (`defaultValue`可以为任意类型)
- 类似API还有:
- - `StpUtil.getLoginId_defaultNull()` 获取当前会话登录id, 如果未登录,则返回null
+ - `StpUtil.getLoginIdDefaultNull()` 获取当前会话登录id, 如果未登录,则返回null
#### getLoginIdByToken(String tokenValue)
- 获取指定token对应的登录id,如果未登录,则返回 null