update 重构 将系统内置配置放置到common包内独立加载 不允许用户随意修改

This commit is contained in:
疯狂的狮子Li
2023-06-15 14:13:18 +08:00
parent 9ec982a23e
commit 9bc1e4ac1e
6 changed files with 85 additions and 37 deletions

View File

@ -0,0 +1,11 @@
# 内置配置 不允许修改 如需修改请在 nacos 上写相同配置覆盖
# Sa-Token配置
sa-token:
# 允许从 请求参数 读取 token
is-read-body: true
# 允许从 header 读取 token
is-read-header: true
# 关闭 cookie 鉴权 从根源杜绝 csrf 漏洞风险
is-read-cookie: false
# token前缀
token-prefix: "Bearer"