v1.19.0 更新

This commit is contained in:
shengzhang 2021-05-10 01:29:56 +08:00
parent 0a7a8138b3
commit 041294e790
34 changed files with 57 additions and 53 deletions

View File

@ -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.18.0</h1>
<h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">sa-token v1.19.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>

View File

@ -25,6 +25,10 @@ cd sa-token-demo-oauth2-server
call mvn clean
cd ..
cd sa-token-demo-quick-login
call mvn clean
cd ..
cd ..
:: 最后打印

View File

@ -8,7 +8,7 @@
<groupId>cn.dev33</groupId>
<artifactId>sa-token-parent</artifactId>
<packaging>pom</packaging>
<version>1.18.0</version>
<version>1.19.0</version>
<!-- 项目介绍 -->
<name>sa-token</name>
@ -36,7 +36,7 @@
<!-- 一些属性 -->
<properties>
<sa-token-version>1.18.0</sa-token-version>
<sa-token-version>1.19.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>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-parent</artifactId>
<version>1.18.0</version>
<version>1.19.0</version>
</parent>
<packaging>jar</packaging>

View File

@ -6,6 +6,7 @@ package cn.dev33.satoken.fun;
* @author kong
*
*/
@FunctionalInterface
public interface SaFunction {
/**

View File

@ -9,6 +9,7 @@ import cn.dev33.satoken.context.model.SaResponse;
* @author kong
*
*/
@FunctionalInterface
public interface SaRouteFunction {
/**

View File

@ -13,7 +13,7 @@ public class SaTokenConsts {
/**
* sa-token 当前版本号
*/
public static final String VERSION_NO = "v1.18.0";
public static final String VERSION_NO = "v1.19.0";
/**
* sa-token 开源地址

View File

@ -16,7 +16,7 @@
<!-- 定义sa-token版本号 -->
<properties>
<sa-token-version>1.18.0</sa-token-version>
<sa-token-version>1.19.0</sa-token-version>
</properties>
<dependencies>

View File

@ -15,7 +15,7 @@
<!-- 定义sa-token版本号 -->
<properties>
<sa-token-version>1.18.0</sa-token-version>
<sa-token-version>1.19.0</sa-token-version>
</properties>
<dependencies>

View File

@ -2,10 +2,8 @@ package com.pj;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.annotation.Configuration;
@SpringBootApplication
@Configuration
public class SaTokenQuickDemoApplication {
public static void main(String[] args) {

View File

@ -16,7 +16,7 @@
<!-- 定义sa-token版本号 -->
<properties>
<sa-token-version>1.18.0</sa-token-version>
<sa-token-version>1.19.0</sa-token-version>
</properties>
<dependencies>

View File

@ -10,7 +10,6 @@ import com.pj.util.AjaxJson;
import cn.dev33.satoken.context.SaHolder;
import cn.dev33.satoken.filter.SaServletFilter;
import cn.dev33.satoken.interceptor.SaAnnotationInterceptor;
import cn.dev33.satoken.router.SaRouterUtil;
/**
@ -42,9 +41,9 @@ public class SaTokenConfigure implements WebMvcConfigurer {
// 认证函数: 每次请求执行
.setAuth(r -> {
System.out.println("---------- sa全局认证");
// System.out.println("---------- sa全局认证");
SaRouterUtil.match("/test/test", () -> new Object());
// SaRouterUtil.match("/test/test", () -> new Object());
})
// 异常处理函数每次认证函数发生异常时执行此函数

View File

@ -16,7 +16,7 @@
<!-- 定义sa-token版本号 -->
<properties>
<sa-token-version>1.18.0</sa-token-version>
<sa-token-version>1.19.0</sa-token-version>
</properties>
<dependencies>

View File

@ -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.18.0</h1>
<h1 align="center" style="margin: 30px 0 30px; font-weight: bold;">sa-token v1.19.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>

View File

@ -49,7 +49,7 @@
- [Session模型详解](/fun/session-model)
- [TokenInfo参数详解](/fun/token-info)
- [框架源码所有技术栈](/fun/tech-stack)
- [Web开发常见漏洞防护](/fun/web-loophole)
<!-- - [Web开发常见漏洞防护](/fun/web-loophole) -->
<!-- - [Sa-Token大事记](/fun/timeline) -->

View File

@ -48,7 +48,7 @@
</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.18.0</sub>'
name += '<b style="font-size: 28px; vertical-align: middle;">Sa-Token</b> <sub>v1.19.0</sub>'
window.$docsify = {
name: name, // 名字
repo: 'https://github.com/dromara/sa-token', // github地址

View File

@ -1,5 +1,13 @@
# 更新日志
### 2021-5-10 @v1.19.0
- 新增注解鉴权新增定制loginKey功能 **[重要]**
- 重构:重构目录结构,抽离`plugin`模块 **[重要]**
- 新增:新增 `sa-token-quick-login` 插件,零代码集成登录功能 **[重要]**
- 优化:所有函数式接口增加`@FunctionalInterface`注解,感谢群友`@MrXionGe`提供的建议
- 优化:文档优化...
### 2021-4-24 @v1.18.0
- 新增:新增权限通配符功能,灵活设置权限 **[重要]**
- 修复:修复自动续签处的逻辑错误

View File

@ -11,7 +11,7 @@
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-spring-aop</artifactId>
<version>1.18.0</version>
<version>1.19.0</version>
</dependency>
```

View File

@ -49,7 +49,7 @@ Sa-Token-Quick-Login的定位是这样的场景你的项目需要一个登录
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-quick-login</artifactId>
<version>1.18.0</version>
<version>1.19.0</version>
</dependency>
```
@ -97,7 +97,7 @@ public class TestController {
### 可配置信息
你可以在yml中添加如下配置
你可以在yml中添加如下配置 (所有配置都是可选的)
``` java
# Sa-Token-Quick-Login 配置
sa:
@ -161,11 +161,9 @@ sa-token-demo-quick-login-0.0.1-SNAPSHOT.jar
java -jar sa-quick-dist.jar
```
5、测试访问根据控制台输出提示我们使用浏览器访问测试
5、测试访问根据控制台输出提示我们使用浏览器访问测试: `http://localhost:8080`
``` java
http://localhost:8080
```
![sa-quick-start](https://oss.dev33.cn/sa-token/doc/sa-quick-start.png 's-w')
如果可以进入登录界面,则代表打包运行成功 <br>
当然仅仅运行成功还不够下面我们演示一下如何使用这个jar包进行静态网站部署
@ -201,12 +199,7 @@ java -jar sa-quick-dist.jar --sa.title="XXX 系统登录"
java -jar sa-quick-dist.jar --sa.auth=false
```
##### Case 6. 关闭账号校验,仅作为静态资源部署使用
``` cmd
java -jar sa-quick-dist.jar --sa.auth=false
```
##### Case 7. 指定启动端口默认8080
##### Case 6. 指定启动端口默认8080
``` cmd
java -jar sa-quick-dist.jar --server.port=80
```

View File

@ -14,7 +14,7 @@
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-spring-boot-starter</artifactId>
<version>1.18.0</version>
<version>1.19.0</version>
</dependency>
```
@ -25,7 +25,7 @@
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-reactor-spring-boot-starter</artifactId>
<version>1.18.0</version>
<version>1.19.0</version>
</dependency>
```
@ -36,7 +36,7 @@
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-servlet</artifactId>
<version>1.18.0</version>
<version>1.19.0</version>
</dependency>
```
@ -47,7 +47,7 @@
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-core</artifactId>
<version>1.18.0</version>
<version>1.19.0</version>
</dependency>
```
<!---------------------------- tabs:end ------------------------------>
@ -58,19 +58,19 @@
<!-- tabs:start -->
<!-- tab:SpringMVC环境 ServletAPI -->
``` xml
implementation 'cn.dev33:sa-token-spring-boot-starter:1.18.0'
implementation 'cn.dev33:sa-token-spring-boot-starter:1.19.0'
```
<!-- tab:WebFlux环境 Reactor -->
``` xml
implementation 'cn.dev33:sa-token-reactor-spring-boot-starter:1.18.0'
implementation 'cn.dev33:sa-token-reactor-spring-boot-starter:1.19.0'
```
<!-- tab:Servlet容器环境 -->
``` xml
implementation 'cn.dev33:sa-token-servlet:1.18.0'
implementation 'cn.dev33:sa-token-servlet:1.19.0'
```
<!-- tab:其它 -->
``` xml
implementation 'cn.dev33:sa-token-core:1.18.0'
implementation 'cn.dev33:sa-token-core:1.19.0'
```
<!-- tabs:end -->

View File

@ -17,7 +17,7 @@
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-spring-boot-starter</artifactId>
<version>1.18.0</version>
<version>1.19.0</version>
</dependency>
```

View File

@ -19,7 +19,7 @@ WebFlux基于Reactor响应式模型开发有着与标准ServletAPI完全不
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-reactor-spring-boot-starter</artifactId>
<version>1.18.0</version>
<version>1.19.0</version>
</dependency>
```

View File

@ -14,7 +14,7 @@ Sa-token默认将会话数据保存在内存中此模式读写速度最快
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-dao-redis</artifactId>
<version>1.18.0</version>
<version>1.19.0</version>
</dependency>
```
优点兼容性好缺点Session序列化后基本不可读对开发者来讲等同于乱码
@ -26,7 +26,7 @@ Sa-token默认将会话数据保存在内存中此模式读写速度最快
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-dao-redis-jackson</artifactId>
<version>1.18.0</version>
<version>1.19.0</version>
</dependency>
```
优点Session序列化后可读性强可灵活手动修改缺点兼容性稍差

View File

@ -46,7 +46,7 @@
<div class="content-box">
<div class="fenge"></div>
<!-- <img class="title-logo" src="./doc/logo.png" onclick="alert('别点我, 快去点star')"> -->
<h1>Sa-Token<small>v1.18.0</small></h1>
<h1>Sa-Token<small>v1.19.0</small></h1>
<div class="sub-title"> 这可能是史上功能最全的java权限认证框架</div>
<div class="btn-box">
<a href="https://github.com/dromara/sa-token" target="_blank">GitHub</a>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-parent</artifactId>
<version>1.18.0</version>
<version>1.19.0</version>
</parent>
<packaging>pom</packaging>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-plugin</artifactId>
<version>1.18.0</version>
<version>1.19.0</version>
</parent>
<packaging>jar</packaging>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-plugin</artifactId>
<version>1.18.0</version>
<version>1.19.0</version>
</parent>
<packaging>jar</packaging>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-plugin</artifactId>
<version>1.18.0</version>
<version>1.19.0</version>
</parent>
<packaging>jar</packaging>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-plugin</artifactId>
<version>1.18.0</version>
<version>1.19.0</version>
</parent>
<packaging>jar</packaging>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-plugin</artifactId>
<version>1.18.0</version>
<version>1.19.0</version>
</parent>
<packaging>jar</packaging>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-parent</artifactId>
<version>1.18.0</version>
<version>1.19.0</version>
</parent>
<packaging>pom</packaging>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-starter</artifactId>
<version>1.18.0</version>
<version>1.19.0</version>
</parent>
<packaging>jar</packaging>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-starter</artifactId>
<version>1.18.0</version>
<version>1.19.0</version>
</parent>
<packaging>jar</packaging>

View File

@ -7,7 +7,7 @@
<parent>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-starter</artifactId>
<version>1.18.0</version>
<version>1.19.0</version>
</parent>
<packaging>jar</packaging>