From 0d1d0fb36524a24d71e7f12ff734e2e6fe68ef14 Mon Sep 17 00:00:00 2001 From: click33 <36243476+click33@users.noreply.github.com> Date: Tue, 29 Sep 2020 23:45:37 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=96=87=E6=A1=A3=E4=B8=8D?= =?UTF-8?q?=E6=AD=A3=E7=A1=AE=E4=B9=8B=E5=A4=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 修复文档不正确之处 --- sa-token-doc/doc/start/example.md | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) diff --git a/sa-token-doc/doc/start/example.md b/sa-token-doc/doc/start/example.md index 333f07f4..416301a7 100644 --- a/sa-token-doc/doc/start/example.md +++ b/sa-token-doc/doc/start/example.md @@ -30,16 +30,18 @@ spring: # sa-token配置 sa-token: - # token名称(同时也是cookie名称) + # token名称 (同时也是cookie名称) token-name: satoken # token有效期,单位s 默认30天 timeout: 2592000 - # 在多人登录同一账号时,是否共享会话(为true时共用一个,为false时新登录挤掉旧登录) + # 在多人登录同一账号时,是否共享会话 (为true时共用一个,为false时新登录挤掉旧登录) is-share: true - # 是否在cookie读取不到token时,继续从请求header里继续尝试读取 - is-read-head: true - # 是否在header读取不到token时,继续从请求题参数里继续尝试读取 + # 是否尝试从请求体里读取token is-read-body: true + # 是否尝试从header里读取token + is-read-head: true + # 是否尝试从cookie里读取token + is-read-cookie: true # 是否在初始化配置时打印版本字符画 is-v: true ```