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

@@ -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序列化后可读性强可灵活手动修改缺点兼容性稍差