提交 30b47573 编写于 作者: shengzhang_'s avatar shengzhang_

v1.13.0更新

上级 b3809121
<p align="center"> <p align="center">
<img alt="logo" src="https://gitee.com/sz6/sa-token/raw/master/sa-token-doc/doc/logo.png" width="150" height="150"> <img alt="logo" src="https://gitee.com/sz6/sa-token/raw/master/sa-token-doc/doc/logo.png" width="150" height="150">
</p> </p>
<h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">sa-token v1.12.1</h1> <h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">sa-token v1.13.0</h1>
<h4 align="center">这可能是史上功能最全的Java权限认证框架!</h4> <h4 align="center">这可能是史上功能最全的Java权限认证框架!</h4>
<h4 align="center"> <h4 align="center">
<a href="https://gitee.com/sz6/sa-token/stargazers"><img src="https://gitee.com/sz6/sa-token/badge/star.svg"></a> <a href="https://gitee.com/sz6/sa-token/stargazers"><img src="https://gitee.com/sz6/sa-token/badge/star.svg"></a>
<a href="https://github.com/click33/sa-token"><img src="https://img.shields.io/badge/sa--token-v1.12.1-2B9939"></a> <a href="https://github.com/click33/sa-token"><img src="https://img.shields.io/badge/sa--token-v1.13.0-2B9939"></a>
<a href="https://github.com/click33/sa-token/stargazers"><img src="https://img.shields.io/github/stars/click33/sa-token"></a> <a href="https://github.com/click33/sa-token/stargazers"><img src="https://img.shields.io/github/stars/click33/sa-token"></a>
<a href="https://github.com/click33/sa-token/watchers"><img src="https://img.shields.io/github/watchers/click33/sa-token"></a> <a href="https://github.com/click33/sa-token/watchers"><img src="https://img.shields.io/github/watchers/click33/sa-token"></a>
<a href="https://github.com/click33/sa-token/network/members"><img src="https://img.shields.io/github/forks/click33/sa-token"></a> <a href="https://github.com/click33/sa-token/network/members"><img src="https://img.shields.io/github/forks/click33/sa-token"></a>
......
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
<groupId>cn.dev33</groupId> <groupId>cn.dev33</groupId>
<artifactId>sa-token-parent</artifactId> <artifactId>sa-token-parent</artifactId>
<packaging>pom</packaging> <packaging>pom</packaging>
<version>1.12.1</version> <version>1.13.0</version>
<!-- 项目介绍 --> <!-- 项目介绍 -->
<name>sa-token</name> <name>sa-token</name>
...@@ -37,7 +37,7 @@ ...@@ -37,7 +37,7 @@
<!-- 一些属性 --> <!-- 一些属性 -->
<properties> <properties>
<sa-token-version>1.12.1</sa-token-version> <sa-token-version>1.13.0</sa-token-version>
<jdk.version>1.8</jdk.version> <jdk.version>1.8</jdk.version>
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding> <project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>utf-8</project.reporting.outputEncoding> <project.reporting.outputEncoding>utf-8</project.reporting.outputEncoding>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>cn.dev33</groupId> <groupId>cn.dev33</groupId>
<artifactId>sa-token-parent</artifactId> <artifactId>sa-token-parent</artifactId>
<version>1.12.1</version> <version>1.13.0</version>
</parent> </parent>
<packaging>jar</packaging> <packaging>jar</packaging>
......
...@@ -123,7 +123,7 @@ public class SaTokenConfig { ...@@ -123,7 +123,7 @@ public class SaTokenConfig {
} }
/** /**
* @param 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token) * @param isShare 在多人登录同一账号时,是否共用一个token (为true时所有登录共用一个token, 为false时每次登录新建一个token)
*/ */
public void setIsShare(Boolean isShare) { public void setIsShare(Boolean isShare) {
this.isShare = isShare; this.isShare = isShare;
...@@ -151,7 +151,7 @@ public class SaTokenConfig { ...@@ -151,7 +151,7 @@ public class SaTokenConfig {
} }
/** /**
* @param 是否尝试从header里读取token * @param isReadHead 是否尝试从header里读取token
*/ */
public void setIsReadHead(Boolean isReadHead) { public void setIsReadHead(Boolean isReadHead) {
this.isReadHead = isReadHead; this.isReadHead = isReadHead;
...@@ -165,7 +165,7 @@ public class SaTokenConfig { ...@@ -165,7 +165,7 @@ public class SaTokenConfig {
} }
/** /**
* @param 是否尝试从cookie里读取token * @param isReadCookie 是否尝试从cookie里读取token
*/ */
public void setIsReadCookie(Boolean isReadCookie) { public void setIsReadCookie(Boolean isReadCookie) {
this.isReadCookie = isReadCookie; this.isReadCookie = isReadCookie;
...@@ -179,7 +179,7 @@ public class SaTokenConfig { ...@@ -179,7 +179,7 @@ public class SaTokenConfig {
} }
/** /**
* @param token风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik) * @param tokenStyle token风格(默认可取值:uuid、simple-uuid、random-32、random-64、random-128、tik)
*/ */
public void setTokenStyle(String tokenStyle) { public void setTokenStyle(String tokenStyle) {
this.tokenStyle = tokenStyle; this.tokenStyle = tokenStyle;
......
...@@ -13,7 +13,7 @@ public class SaTokenConsts { ...@@ -13,7 +13,7 @@ public class SaTokenConsts {
/** /**
* sa-token 版本号 * sa-token 版本号
*/ */
public static final String VERSION_NO = "v1.12.1"; public static final String VERSION_NO = "v1.13.0";
/** /**
* sa-token 开源地址 * sa-token 开源地址
......
...@@ -43,6 +43,8 @@ public class SaTokenInsideUtil { ...@@ -43,6 +43,8 @@ public class SaTokenInsideUtil {
/** /**
* 指定字符串是否为null或者空字符串 * 指定字符串是否为null或者空字符串
* @param str 指定字符串
* @return 是否为null或者空字符串
*/ */
public static boolean isEmpty(String str) { public static boolean isEmpty(String str) {
return str == null || "".equals(str); return str == null || "".equals(str);
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>cn.dev33</groupId> <groupId>cn.dev33</groupId>
<artifactId>sa-token-parent</artifactId> <artifactId>sa-token-parent</artifactId>
<version>1.12.1</version> <version>1.13.0</version>
</parent> </parent>
<packaging>jar</packaging> <packaging>jar</packaging>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>cn.dev33</groupId> <groupId>cn.dev33</groupId>
<artifactId>sa-token-parent</artifactId> <artifactId>sa-token-parent</artifactId>
<version>1.12.1</version> <version>1.13.0</version>
</parent> </parent>
<packaging>jar</packaging> <packaging>jar</packaging>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<!-- 定义sa-token版本号 --> <!-- 定义sa-token版本号 -->
<properties> <properties>
<sa-token-version>1.12.1</sa-token-version> <sa-token-version>1.13.0</sa-token-version>
</properties> </properties>
<dependencies> <dependencies>
......
...@@ -16,7 +16,7 @@ ...@@ -16,7 +16,7 @@
<!-- 定义sa-token版本号 --> <!-- 定义sa-token版本号 -->
<properties> <properties>
<sa-token-version>1.12.1</sa-token-version> <sa-token-version>1.13.0</sa-token-version>
</properties> </properties>
<dependencies> <dependencies>
......
<p align="center"> <p align="center">
<img alt="logo" src="https://gitee.com/sz6/sa-token/raw/master/sa-token-doc/doc/logo.png" width="150" height="150"> <img alt="logo" src="https://gitee.com/sz6/sa-token/raw/master/sa-token-doc/doc/logo.png" width="150" height="150">
</p> </p>
<h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">sa-token v1.12.1</h1> <h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">sa-token v1.13.0</h1>
<h4 align="center">这可能是史上功能最全的Java权限认证框架!</h4> <h4 align="center">这可能是史上功能最全的Java权限认证框架!</h4>
<h4 align="center"> <h4 align="center">
<a href="https://gitee.com/sz6/sa-token/stargazers"><img src="https://gitee.com/sz6/sa-token/badge/star.svg"></a> <a href="https://gitee.com/sz6/sa-token/stargazers"><img src="https://gitee.com/sz6/sa-token/badge/star.svg"></a>
<a href="https://github.com/click33/sa-token"><img src="https://img.shields.io/badge/sa--token-v1.12.1-2B9939"></a> <a href="https://github.com/click33/sa-token"><img src="https://img.shields.io/badge/sa--token-v1.13.0-2B9939"></a>
<a href="https://github.com/click33/sa-token/stargazers"><img src="https://img.shields.io/github/stars/click33/sa-token"></a> <a href="https://github.com/click33/sa-token/stargazers"><img src="https://img.shields.io/github/stars/click33/sa-token"></a>
<a href="https://github.com/click33/sa-token/watchers"><img src="https://img.shields.io/github/watchers/click33/sa-token"></a> <a href="https://github.com/click33/sa-token/watchers"><img src="https://img.shields.io/github/watchers/click33/sa-token"></a>
<a href="https://github.com/click33/sa-token/network/members"><img src="https://img.shields.io/github/forks/click33/sa-token"></a> <a href="https://github.com/click33/sa-token/network/members"><img src="https://img.shields.io/github/forks/click33/sa-token"></a>
......
...@@ -21,6 +21,7 @@ ...@@ -21,6 +21,7 @@
<nav> <nav>
<select onchange="location.href=this.value"> <select onchange="location.href=this.value">
<option value="http://sa-token.dev33.cn/doc/index.html">最新版</option> <option value="http://sa-token.dev33.cn/doc/index.html">最新版</option>
<option value="http://sa-token.dev33.cn/v/v1.12.1/doc/index.html">v1.12.1</option>
<option value="http://sa-token.dev33.cn/v/v1.12.0/doc/index.html">v1.12.0</option> <option value="http://sa-token.dev33.cn/v/v1.12.0/doc/index.html">v1.12.0</option>
<option value="http://sa-token.dev33.cn/v/v1.11.0/doc/index.html">v1.11.0</option> <option value="http://sa-token.dev33.cn/v/v1.11.0/doc/index.html">v1.11.0</option>
<option value="http://sa-token.dev33.cn/v/v1.10.0/doc/index.html">v1.10.0</option> <option value="http://sa-token.dev33.cn/v/v1.10.0/doc/index.html">v1.10.0</option>
...@@ -41,7 +42,7 @@ ...@@ -41,7 +42,7 @@
</div> </div>
<script> <script>
var name = '<img style="width: 50px; height: 50px; vertical-align: middle;" src="logo.png" alt="logo" /> '; var name = '<img style="width: 50px; height: 50px; vertical-align: middle;" src="logo.png" alt="logo" /> ';
name += '<b style="font-size: 24px; vertical-align: middle;">sa-token</b> <sub>v1.12.1</sub>' name += '<b style="font-size: 24px; vertical-align: middle;">sa-token</b> <sub>v1.13.0</sub>'
window.$docsify = { window.$docsify = {
name: name, // 名字 name: name, // 名字
repo: 'https://github.com/click33/sa-token', // github地址 repo: 'https://github.com/click33/sa-token', // github地址
......
# 更新日志 # 更新日志
### 2021-2-8 @v1.13.0
- 优化:优化源码注释与文档
- 新增:文档集成Gitalk评论系统
- 优化:源码包`Maven`版本号更改为变量形式
- 修复:文档处方法名`getPermissionList`错误的bug
- 修复:修复`StpUtil.getTokenInfo()`会触发自动续签的bug
- 修复:修复接口 `SaTokenDao``searchData` 函数注释错误
- 新增:`SaSession`的创建抽象到`SaTokenAction`接口,方便按需重写
- 新建:框架内异常统一继承 `SaTokenException` 方便在异常处理时分辨处理
- 新增:`SaSession`新增`setId()``setCreateTime()`方法,方便部分框架的序列化
- 新增:新增`autoRenew`配置,用于控制是否打开自动续签模式
- 新增:同域模式下的单点登录 **[重要]**
- 新增:完善分布式会话的文档说明
### 2021-1-12 @v1.12.0 ### 2021-1-12 @v1.12.0
- 新增:提供JWT集成示例 **[重要]** - 新增:提供JWT集成示例 **[重要]**
- 新增:新增路由式鉴权,可方便的根据路由匹配鉴权 **[重要]** - 新增:新增路由式鉴权,可方便的根据路由匹配鉴权 **[重要]**
- 新增:新增身份临时切换功能,可在一个代码段内将会话临时切换为其它账号 **[重要]** - 新增:新增身份临时切换功能,可在一个代码段内将会话临时切换为其它账号 **[重要]**
- 优化:将`SaCheckInterceptor.java`更名为`SaAnnotationInterceptor.java`,更语义化的名称 - 优化:将`SaCheckInterceptor.java`更名为`SaAnnotationInterceptor.java`,更语义化的名称
- 优化:优化文档 - 优化:优化文档
- 升级:v1.12.1,新增`SaRouterUtil`工具类,更方便的路由鉴权 - 升级:v1.12.1,新增`SaRouterUtil`工具类,更方便的路由鉴权 **[重要]**
### 2021-1-10 @v1.11.0 ### 2021-1-10 @v1.11.0
......
...@@ -9,14 +9,14 @@ ...@@ -9,14 +9,14 @@
<dependency> <dependency>
<groupId>cn.dev33</groupId> <groupId>cn.dev33</groupId>
<artifactId>sa-token-spring-boot-starter</artifactId> <artifactId>sa-token-spring-boot-starter</artifactId>
<version>1.12.1</version> <version>1.13.0</version>
</dependency> </dependency>
``` ```
## Gradle依赖 ## Gradle依赖
Gradle用户引入依赖: Gradle用户引入依赖:
``` ```
implementation 'cn.dev33:sa-token-spring-boot-starter:1.12.1' implementation 'cn.dev33:sa-token-spring-boot-starter:1.13.0'
``` ```
......
...@@ -19,7 +19,7 @@ ...@@ -19,7 +19,7 @@
<dependency> <dependency>
<groupId>cn.dev33</groupId> <groupId>cn.dev33</groupId>
<artifactId>sa-token-spring-boot-starter</artifactId> <artifactId>sa-token-spring-boot-starter</artifactId>
<version>1.12.1</version> <version>1.13.0</version>
</dependency> </dependency>
``` ```
......
...@@ -21,7 +21,7 @@ sa-token内置两种模式完成注解鉴权,分别是`AOP模式`和`拦截器 ...@@ -21,7 +21,7 @@ sa-token内置两种模式完成注解鉴权,分别是`AOP模式`和`拦截器
<dependency> <dependency>
<groupId>cn.dev33</groupId> <groupId>cn.dev33</groupId>
<artifactId>sa-token-spring-aop</artifactId> <artifactId>sa-token-spring-aop</artifactId>
<version>1.12.1</version> <version>1.13.0</version>
</dependency> </dependency>
``` ```
......
...@@ -15,7 +15,7 @@ Sa-token默认将会话数据保存在内存中,此模式读写速度最快, ...@@ -15,7 +15,7 @@ Sa-token默认将会话数据保存在内存中,此模式读写速度最快,
<dependency> <dependency>
<groupId>cn.dev33</groupId> <groupId>cn.dev33</groupId>
<artifactId>sa-token-dao-redis</artifactId> <artifactId>sa-token-dao-redis</artifactId>
<version>1.12.1</version> <version>1.13.0</version>
</dependency> </dependency>
``` ```
优点:兼容性好,缺点:Session序列化后基本不可读,对开发者来讲等同于乱码 优点:兼容性好,缺点:Session序列化后基本不可读,对开发者来讲等同于乱码
...@@ -27,7 +27,7 @@ Sa-token默认将会话数据保存在内存中,此模式读写速度最快, ...@@ -27,7 +27,7 @@ Sa-token默认将会话数据保存在内存中,此模式读写速度最快,
<dependency> <dependency>
<groupId>cn.dev33</groupId> <groupId>cn.dev33</groupId>
<artifactId>sa-token-dao-redis-jackson</artifactId> <artifactId>sa-token-dao-redis-jackson</artifactId>
<version>1.12.1</version> <version>1.13.0</version>
</dependency> </dependency>
``` ```
优点:Session序列化后可读性强,可灵活手动修改,缺点:兼容性稍差 优点:Session序列化后可读性强,可灵活手动修改,缺点:兼容性稍差
......
...@@ -22,7 +22,7 @@ body:not(.ready) {overflow: auto;} ...@@ -22,7 +22,7 @@ body:not(.ready) {overflow: auto;}
.content-box h1{font-size: 110px; font-weight: 300; position: relative;} .content-box h1{font-size: 110px; font-weight: 300; position: relative;}
.content-box h1 small{font-size: 20px; position: absolute; bottom: 0px;} .content-box h1 small{font-size: 20px; position: absolute; bottom: 0px;}
.sub-title{font-size: 24px; font-weight: 400; margin-top: 30px; margin-bottom: 25px;} .sub-title{font-size: 24px; font-weight: 400; margin-top: 30px; margin-bottom: 25px;}
.content-box p{line-height: 30px;} .content-box p{line-height: 30px; padding: 0px 1em;}
.btn-box{margin-top: 16px;} .btn-box{margin-top: 16px;}
.btn-box a{ .btn-box a{
......
...@@ -41,11 +41,12 @@ ...@@ -41,11 +41,12 @@
<!-- 内容部分 --> <!-- 内容部分 -->
<div class="main-box"> <div class="main-box">
<div class="content-box"> <div class="content-box">
<h1>sa-token<small>v1.12.1</small></h1> <h1>sa-token<small>v1.13.0</small></h1>
<div class="sub-title">这可能是史上功能最全的java权限认证框架!</div> <div class="sub-title">这可能是史上功能最全的java权限认证框架!</div>
<!-- <p>0配置开箱即用,低学习成本</p> --> <!-- <p>0配置开箱即用,低学习成本</p> -->
<p>登录验证、权限验证、Session会话、踢人下线、集成Redis、分布式会话、单点登录、前后台分离、模拟他人账号、临时身份切换、多账号体系、注解式鉴权、路由拦截式鉴权、花式token、自动续签、同端互斥登录、会话治理、Spring集成...</p> <p>登录验证、权限验证、Session会话、踢人下线、集成Redis、分布式会话、单点登录、前后台分离、模拟他人账号、临时身份切换、多账号体系、注解式鉴权、路由拦截式鉴权、花式token、自动续签、同端互斥登录、会话治理、Spring集成...</p>
<p>零配置开箱即用,覆盖所有应用场景,你所需要的功能,这里都有</p> <!-- <p>零配置开箱即用,覆盖所有应用场景,你所需要的功能,这里都有</p> -->
<p>有了sa-token,你所有的权限认证问题,都不再是问题!</p>
<div class="btn-box"> <div class="btn-box">
<a href="https://github.com/click33/sa-token" target="_blank">GitHub</a> <a href="https://github.com/click33/sa-token" target="_blank">GitHub</a>
<a href="https://gitee.com/sz6/sa-token" target="_blank">码云</a> <a href="https://gitee.com/sz6/sa-token" target="_blank">码云</a>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>cn.dev33</groupId> <groupId>cn.dev33</groupId>
<artifactId>sa-token-parent</artifactId> <artifactId>sa-token-parent</artifactId>
<version>1.12.1</version> <version>1.13.0</version>
</parent> </parent>
<packaging>jar</packaging> <packaging>jar</packaging>
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
<parent> <parent>
<groupId>cn.dev33</groupId> <groupId>cn.dev33</groupId>
<artifactId>sa-token-parent</artifactId> <artifactId>sa-token-parent</artifactId>
<version>1.12.1</version> <version>1.13.0</version>
</parent> </parent>
<packaging>jar</packaging> <packaging>jar</packaging>
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册