Skip to content

Commit

Permalink
v1.17.0 更新
Browse files Browse the repository at this point in the history
  • Loading branch information
click33 committed Apr 17, 2021
1 parent 87b5242 commit f1104b6
Show file tree
Hide file tree
Showing 32 changed files with 162 additions and 48 deletions.
7 changes: 4 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<p align="center">
<img alt="logo" src="https://gitee.com/dromara/sa-token/raw/master/sa-token-doc/doc/logo.png" width="150" height="150">
</p>
<h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">sa-token v1.16.0</h1>
<h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">sa-token v1.17.0</h1>
<h4 align="center">这可能是史上功能最全的 Java 权限认证框架!</h4>
<h4 align="center">
<a href="https://gitee.com/dromara/sa-token/stargazers"><img src="https://gitee.com/dromara/sa-token/badge/star.svg"></a>
Expand All @@ -28,7 +28,7 @@


## Sa-Token是什么?
sa-token是一个轻量级Java权限认证框架,主要解决:登录认证、权限认证、Session会话、单点登录、OAuth2.0 等一系列权限相关问题
Sa-Token是一个轻量级Java权限认证框架,主要解决:登录认证、权限认证、Session会话、单点登录、OAuth2.0 等一系列权限相关问题

框架针对踢人下线、自动续签、前后台分离、分布式会话……等常见业务进行N多适配,通过sa-token,你可以以一种极简的方式实现系统的权限认证部分

Expand All @@ -42,7 +42,7 @@ sa-token是一个轻量级Java权限认证框架,主要解决:登录认证

## Sa-Token 能做什么?

![sa-token-js](https://oss.dev33.cn/sa-token/doc/sa-token-js.png)
![sa-token-js](https://oss.dev33.cn/sa-token/doc/sa-token-js.png 's-w')

- **登录验证** —— 轻松登录鉴权,并提供五种细分场景值
- **权限验证** —— 适配RBAC权限模型,不同角色不同授权
Expand All @@ -65,6 +65,7 @@ sa-token是一个轻量级Java权限认证框架,主要解决:登录认证
- **会话治理** —— 提供方便灵活的会话查询接口
- **记住我模式** —— 适配[记住我]模式,重启浏览器免验证
- **密码加密** —— 提供密码加密模块,可快速MD5、SHA1、SHA256、AES、RSA加密
- **全局侦听器** —— 在用户登陆、注销、被踢下线等关键性操作时进行一些AOP操作
- **开箱即用** —— 提供SpringMVC、WebFlux等常见web框架starter集成包,真正的开箱即用
- **更多功能正在集成中...** —— 如有您有好想法或者建议,欢迎加群交流

Expand Down
28 changes: 28 additions & 0 deletions mvn clean.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@

call mvn clean

cd sa-token-demo-jwt
call mvn clean
cd ..

cd sa-token-demo-springboot
call mvn clean
cd ..

cd sa-token-demo-webflux
call mvn clean
cd ..

cd sa-token-demo-oauth2\sa-token-demo-oauth2-client
call mvn clean
cd ../..

cd sa-token-demo-oauth2\sa-token-demo-oauth2-server
call mvn clean
cd ../..

echo;
echo;
echo ----------- clean end -----------
echo;
pause
4 changes: 2 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
<groupId>cn.dev33</groupId>
<artifactId>sa-token-parent</artifactId>
<packaging>pom</packaging>
<version>1.16.0.RELEASE</version>
<version>1.17.0</version>

<!-- 项目介绍 -->
<name>sa-token</name>
Expand Down Expand Up @@ -40,7 +40,7 @@

<!-- 一些属性 -->
<properties>
<sa-token-version>1.16.0.RELEASE</sa-token-version>
<sa-token-version>1.17.0</sa-token-version>
<jdk.version>1.8</jdk.version>
<project.build.sourceEncoding>utf-8</project.build.sourceEncoding>
<project.reporting.outputEncoding>utf-8</project.reporting.outputEncoding>
Expand Down
2 changes: 1 addition & 1 deletion sa-token-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-parent</artifactId>
<version>1.16.0.RELEASE</version>
<version>1.17.0</version>
</parent>
<packaging>jar</packaging>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ public static void setConfig(SaTokenConfig config) {
}
public static SaTokenConfig getConfig() {
if (config == null) {
// 如果对象为空,则使用框架默认方式初始化
synchronized (SaTokenManager.class) {
if (config == null) {
setConfig(SaTokenConfigFactory.createConfig());
Expand All @@ -59,7 +58,6 @@ public static void setSaTokenDao(SaTokenDao saTokenDao) {
}
public static SaTokenDao getSaTokenDao() {
if (saTokenDao == null) {
// 如果对象为空,则使用框架默认方式初始化
synchronized (SaTokenManager.class) {
if (saTokenDao == null) {
setSaTokenDao(new SaTokenDaoDefaultImpl());
Expand All @@ -78,7 +76,6 @@ public static void setStpInterface(StpInterface stpInterface) {
}
public static StpInterface getStpInterface() {
if (stpInterface == null) {
// 如果对象为空,则使用框架默认方式初始化
synchronized (SaTokenManager.class) {
if (stpInterface == null) {
setStpInterface(new StpInterfaceDefaultImpl());
Expand All @@ -97,7 +94,6 @@ public static void setSaTokenAction(SaTokenAction saTokenAction) {
}
public static SaTokenAction getSaTokenAction() {
if (saTokenAction == null) {
// 如果对象为空,则使用框架默认方式初始化
synchronized (SaTokenManager.class) {
if (saTokenAction == null) {
setSaTokenAction(new SaTokenActionDefaultImpl());
Expand All @@ -116,7 +112,6 @@ public static void setSaTokenContext(SaTokenContext saTokenContext) {
}
public static SaTokenContext getSaTokenContext() {
if (saTokenContext == null) {
// 如果对象为空,则使用框架默认方式初始化
synchronized (SaTokenManager.class) {
if (saTokenContext == null) {
setSaTokenContext(new SaTokenContextDefaultImpl());
Expand All @@ -127,7 +122,7 @@ public static SaTokenContext getSaTokenContext() {
}

/**
* 监听器 Bean
* 侦听器 Bean
*/
private static SaTokenListener saTokenListener;
public static void setSaTokenListener(SaTokenListener saTokenListener) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,10 +11,10 @@
public interface SaTokenDao {

/** 常量,表示一个key永不过期 (在一个key被标注为永远不过期时返回此值) */
public static final Long NEVER_EXPIRE = -1L;
public static final long NEVER_EXPIRE = -1;

/** 常量,表示系统中不存在这个缓存 (在对不存在的key获取剩余存活时间时返回此值) */
public static final Long NOT_VALUE_EXPIRE = -2L;
public static final long NOT_VALUE_EXPIRE = -2;


// --------------------- token相关 ---------------------
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import cn.dev33.satoken.stp.SaLoginModel;

/**
* Sa-Token的监听器
* Sa-Token的侦听器
* <p> 你可以通过实现此接口在用户登陆、退出等关键性操作时进行一些AOP操作
* @author kong
*
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
import cn.dev33.satoken.util.SaTokenInsideUtil;

/**
* Sa-Token 监听器的默认实现:log打印
* Sa-Token 侦听器的默认实现:log打印
* @author kong
*
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public class SaTokenConsts {
/**
* sa-token 当前版本号
*/
public static final String VERSION_NO = "v1.16.0.RELEASE";
public static final String VERSION_NO = "v1.17.0";

/**
* sa-token 开源地址
Expand Down
2 changes: 1 addition & 1 deletion sa-token-dao-redis-jackson/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-parent</artifactId>
<version>1.16.0.RELEASE</version>
<version>1.17.0</version>
</parent>
<packaging>jar</packaging>

Expand Down
2 changes: 1 addition & 1 deletion sa-token-dao-redis/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
<parent>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-parent</artifactId>
<version>1.16.0.RELEASE</version>
<version>1.17.0</version>
</parent>
<packaging>jar</packaging>

Expand Down
2 changes: 1 addition & 1 deletion sa-token-demo-jwt/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<!-- 定义sa-token版本号 -->
<properties>
<sa-token-version>1.16.0.RELEASE</sa-token-version>
<sa-token-version>1.17.0</sa-token-version>
</properties>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion sa-token-demo-springboot/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<!-- 定义sa-token版本号 -->
<properties>
<sa-token-version>1.16.0.RELEASE</sa-token-version>
<sa-token-version>1.17.0</sa-token-version>
</properties>

<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion sa-token-demo-webflux/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@

<!-- 定义sa-token版本号 -->
<properties>
<sa-token-version>1.16.0.RELEASE</sa-token-version>
<sa-token-version>1.17.0</sa-token-version>
</properties>

<dependencies>
Expand Down
7 changes: 4 additions & 3 deletions sa-token-doc/doc/README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<p align="center">
<img alt="logo" src="https://gitee.com/dromara/sa-token/raw/master/sa-token-doc/doc/logo.png" width="150" height="150">
</p>
<h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">sa-token v1.16.0</h1>
<h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">sa-token v1.17.0</h1>
<h4 align="center">这可能是史上功能最全的 Java 权限认证框架!</h4>
<h4 align="center">
<a href="https://gitee.com/dromara/sa-token/stargazers"><img src="https://gitee.com/dromara/sa-token/badge/star.svg"></a>
Expand All @@ -28,7 +28,7 @@


## Sa-Token是什么?
sa-token是一个轻量级Java权限认证框架,主要解决:登录认证、权限认证、Session会话、单点登录、OAuth2.0 等一系列权限相关问题
Sa-Token是一个轻量级Java权限认证框架,主要解决:登录认证、权限认证、Session会话、单点登录、OAuth2.0 等一系列权限相关问题

框架针对踢人下线、自动续签、前后台分离、分布式会话……等常见业务进行N多适配,通过sa-token,你可以以一种极简的方式实现系统的权限认证部分

Expand All @@ -42,7 +42,7 @@ sa-token是一个轻量级Java权限认证框架,主要解决:登录认证

## Sa-Token 能做什么?

![sa-token-js](https://oss.dev33.cn/sa-token/doc/sa-token-js.png)
![sa-token-js](https://oss.dev33.cn/sa-token/doc/sa-token-js.png 's-w')

- **登录验证** —— 轻松登录鉴权,并提供五种细分场景值
- **权限验证** —— 适配RBAC权限模型,不同角色不同授权
Expand All @@ -65,6 +65,7 @@ sa-token是一个轻量级Java权限认证框架,主要解决:登录认证
- **会话治理** —— 提供方便灵活的会话查询接口
- **记住我模式** —— 适配[记住我]模式,重启浏览器免验证
- **密码加密** —— 提供密码加密模块,可快速MD5、SHA1、SHA256、AES、RSA加密
- **全局侦听器** —— 在用户登陆、注销、被踢下线等关键性操作时进行一些AOP操作
- **开箱即用** —— 提供SpringMVC、WebFlux等常见web框架starter集成包,真正的开箱即用
- **更多功能正在集成中...** —— 如有您有好想法或者建议,欢迎加群交流

Expand Down
1 change: 1 addition & 0 deletions sa-token-doc/doc/_sidebar.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@
- [同端互斥登录](/use/mutex-login)
- [密码加密](/use/password-secure)
- [会话治理](/use/search-session)
- [全局侦听器](/use/global-listener)

- **进阶**
- [全局过滤器](/use/global-filter)
Expand Down
3 changes: 2 additions & 1 deletion sa-token-doc/doc/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ <h1 class="logo-text">sa-token</h1>
<nav>
<select onchange="location.href=this.value">
<option value="http://sa-token.dev33.cn/doc/index.html">最新版</option>
<option value="http://sa-token.dev33.cn/v/v1.16.0/doc/index.html">v1.16.0</option>
<option value="http://sa-token.dev33.cn/v/v1.15.0/doc/index.html">v1.15.0</option>
<option value="http://sa-token.dev33.cn/v/v1.14.0/doc/index.html">v1.14.0</option>
<option value="http://sa-token.dev33.cn/v/v1.13.0/doc/index.html">v1.13.0</option>
Expand All @@ -46,7 +47,7 @@ <h1 class="logo-text">sa-token</h1>
</div>
<script>
var name = '<img style="width: 60px; height: 60px; vertical-align: middle;" src="logo.png" alt="logo" /> ';
name += '<b style="font-size: 28px; vertical-align: middle;">sa-token</b> <sub>v1.16.0</sub>'
name += '<b style="font-size: 28px; vertical-align: middle;">sa-token</b> <sub>v1.17.0</sub>'
window.$docsify = {
name: name, // 名字
repo: 'https://github.com/dromara/sa-token', // github地址
Expand Down
12 changes: 11 additions & 1 deletion sa-token-doc/doc/more/update-log.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,17 @@
# 更新日志


### 2021-4-17 @v1.17.0
- 修复:在WebFlux环境中引入Redis集成包无法启动的问题
- 修复:修复JWT集成示例中版本升级API的变更
- 优化:优化启动时字符画打印
- 文档:新增集成环境说明
- 文档:新增功能介绍图
- 新增:全局过滤器增加限定[拦截路径][排除路径]功能
- 重构:全局过滤器执行函数放到成员变量里,连缀风格配置
- 新增:新增全局侦听器,可在用户登陆、注销、被踢下线等关键性操作时进行一些AOP操作 **[重要]**


### 2021-4-12 @v1.16.0
- 新增:新增账号封禁功能,指定时间内账号无法登陆 **[重要]**
- 新增:核心包脱离`ServletAPI`,彻底零依赖! **[重要]**
Expand All @@ -12,7 +23,6 @@
- 文档:新增推荐公众号列表



### 2021-3-23 @v1.15.0
- 新增:文档添加源码涉及技术栈说明
- 优化:优化路由拦截器模块文档,更简洁的示例
Expand Down
16 changes: 8 additions & 8 deletions sa-token-doc/doc/start/download.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-spring-boot-starter</artifactId>
<version>1.16.0.RELEASE</version>
<version>1.17.0</version>
</dependency>
```

Expand All @@ -23,7 +23,7 @@
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-reactor-spring-boot-starter</artifactId>
<version>1.16.0.RELEASE</version>
<version>1.17.0</version>
</dependency>
```

Expand All @@ -34,7 +34,7 @@
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-servlet</artifactId>
<version>1.16.0.RELEASE</version>
<version>1.17.0</version>
</dependency>
```

Expand All @@ -45,7 +45,7 @@
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-core</artifactId>
<version>1.16.0.RELEASE</version>
<version>1.17.0</version>
</dependency>
```
<!---------------------------- tabs:end ------------------------------>
Expand All @@ -56,19 +56,19 @@
<!-- tabs:start -->
<!-- tab:SpringMVC环境 (ServletAPI) -->
``` xml
implementation 'cn.dev33:sa-token-spring-boot-starter:1.16.0.RELEASE'
implementation 'cn.dev33:sa-token-spring-boot-starter:1.17.0'
```
<!-- tab:WebFlux环境 (Reactor) -->
``` xml
implementation 'cn.dev33:sa-token-reactor-spring-boot-starter:1.16.0.RELEASE'
implementation 'cn.dev33:sa-token-reactor-spring-boot-starter:1.17.0'
```
<!-- tab:Servlet容器环境 -->
``` xml
implementation 'cn.dev33:sa-token-servlet:1.16.0.RELEASE'
implementation 'cn.dev33:sa-token-servlet:1.17.0'
```
<!-- tab:其它 -->
``` xml
implementation 'cn.dev33:sa-token-core:1.16.0.RELEASE'
implementation 'cn.dev33:sa-token-core:1.17.0'
```
<!-- tabs:end -->

Expand Down
2 changes: 1 addition & 1 deletion sa-token-doc/doc/start/example.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-spring-boot-starter</artifactId>
<version>1.16.0.RELEASE</version>
<version>1.17.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion sa-token-doc/doc/start/webflux-example.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ WebFlux基于Reactor响应式模型开发,有着与标准ServletAPI完全不
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-reactor-spring-boot-starter</artifactId>
<version>1.16.0.RELEASE</version>
<version>1.17.0</version>
</dependency>
```

Expand Down
2 changes: 1 addition & 1 deletion sa-token-doc/doc/use/at-check.md
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ sa-token内置两种模式完成注解鉴权,分别是`AOP模式`和`拦截器
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-spring-aop</artifactId>
<version>1.16.0.RELEASE</version>
<version>1.17.0</version>
</dependency>
```

Expand Down
Loading

0 comments on commit f1104b6

Please sign in to comment.