sa-token/sa-token-doc/doc/start/download.md

53 lines
1.7 KiB
Markdown
Raw Normal View History

2020-05-02 15:19:55 +08:00
# 集成
2020-02-06 00:52:49 +08:00
------
2021-01-02 04:00:49 +08:00
## Maven依赖
2020-05-02 15:19:55 +08:00
在项目中直接通过 `pom.xml` 导入 `sa-token` 的依赖即可
``` xml
<!-- sa-token 权限认证, 在线文档http://sa-token.dev33.cn/ -->
<dependency>
<groupId>cn.dev33</groupId>
2020-12-24 22:51:57 +08:00
<artifactId>sa-token-spring-boot-starter</artifactId>
2021-02-09 01:17:52 +08:00
<version>1.13.0</version>
2020-05-02 15:19:55 +08:00
</dependency>
```
2021-01-12 01:01:23 +08:00
## Gradle依赖
Gradle用户引入依赖
```
2021-02-09 01:17:52 +08:00
implementation 'cn.dev33:sa-token-spring-boot-starter:1.13.0'
2021-01-12 01:01:23 +08:00
```
2020-05-02 15:19:55 +08:00
2020-09-07 02:21:35 +08:00
## 获取源码
2020-05-02 15:19:55 +08:00
如果你想深入了解`sa-token`,你可以通过`github`或者`gitee`来获取源码
2020-02-06 00:52:49 +08:00
- github地址[https://github.com/click33/sa-token](https://github.com/click33/sa-token)
- gitee地址[https://gitee.com/sz6/sa-token](https://gitee.com/sz6/sa-token)
2020-09-07 02:21:35 +08:00
- 开源不易,求鼓励,给个`star`吧
2021-01-02 04:00:49 +08:00
- 源码目录介绍:
```
── sa-token
├── sa-token-core // sa-token核心模块
├── sa-token-spring-boot-starter // sa-token整合springboot快速集成
├── sa-token-dao-redis // sa-token整合redis (使用jdk默认序列化方式)
2021-01-11 21:18:55 +08:00
├── sa-token-dao-redis-jackson // sa-token整合redis (使用jackson序列化方式)
├── sa-token-spring-aop // sa-token整合SpringAOP 注解鉴权
├── sa-token-demo-springboot // sa-token示例
├── sa-token-demo-jwt // sa-token集成jwt示例
├── sa-token-doc // sa-token开发文档
2021-01-02 04:00:49 +08:00
├──pom.xml
```
2020-02-06 00:52:49 +08:00
2020-02-08 00:54:38 +08:00
## jar包下载
2020-12-18 00:39:14 +08:00
[点击下载sa-token-1.6.0.jar](https://oss.dev33.cn/sa-token/sa-token-1.6.0.jar)
2020-02-06 00:52:49 +08:00
2020-12-25 00:16:12 +08:00
(注意:当前仅提供`v1.6.0`版本jar包下载更多版本请前往maven中央仓库获取)
2020-02-06 00:52:49 +08:00