mirror of
https://gitee.com/dromara/sa-token.git
synced 2025-06-28 13:34:18 +08:00
目录结构重构完成
This commit is contained in:
parent
5cde169e7f
commit
9965821b51
@ -1,6 +1,10 @@
|
|||||||
|
|
||||||
|
:: 整体clean
|
||||||
call mvn clean
|
call mvn clean
|
||||||
|
|
||||||
|
:: demo模块clean
|
||||||
|
cd sa-token-demo
|
||||||
|
|
||||||
cd sa-token-demo-jwt
|
cd sa-token-demo-jwt
|
||||||
call mvn clean
|
call mvn clean
|
||||||
cd ..
|
cd ..
|
||||||
@ -13,14 +17,17 @@ cd sa-token-demo-webflux
|
|||||||
call mvn clean
|
call mvn clean
|
||||||
cd ..
|
cd ..
|
||||||
|
|
||||||
cd sa-token-demo-oauth2\sa-token-demo-oauth2-client
|
cd sa-token-demo-oauth2-client
|
||||||
call mvn clean
|
call mvn clean
|
||||||
cd ../..
|
cd ..
|
||||||
|
|
||||||
cd sa-token-demo-oauth2\sa-token-demo-oauth2-server
|
cd sa-token-demo-oauth2-server
|
||||||
call mvn clean
|
call mvn clean
|
||||||
cd ../..
|
cd ..
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
|
||||||
|
:: 最后打印
|
||||||
echo;
|
echo;
|
||||||
echo;
|
echo;
|
||||||
echo ----------- clean end -----------
|
echo ----------- clean end -----------
|
||||||
|
9
pom.xml
9
pom.xml
@ -19,13 +19,8 @@
|
|||||||
<!-- 所有模块 -->
|
<!-- 所有模块 -->
|
||||||
<modules>
|
<modules>
|
||||||
<module>sa-token-core</module>
|
<module>sa-token-core</module>
|
||||||
<module>sa-token-servlet</module>
|
<module>sa-token-starter</module>
|
||||||
<module>sa-token-spring-boot-starter</module>
|
<module>sa-token-plugin</module>
|
||||||
<module>sa-token-reactor-spring-boot-starter</module>
|
|
||||||
<module>sa-token-dao-redis</module>
|
|
||||||
<module>sa-token-dao-redis-jackson</module>
|
|
||||||
<module>sa-token-spring-aop</module>
|
|
||||||
<!-- <module>sa-token-oauth2</module> -->
|
|
||||||
</modules>
|
</modules>
|
||||||
|
|
||||||
<!-- 开源协议 apache 2.0 -->
|
<!-- 开源协议 apache 2.0 -->
|
||||||
|
86
sa-token-demo/sa-token-demo-jwt/pom.xml
Normal file
86
sa-token-demo/sa-token-demo-jwt/pom.xml
Normal file
@ -0,0 +1,86 @@
|
|||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
<groupId>cn.dev33</groupId>
|
||||||
|
<artifactId>sa-token-demo-jwt</artifactId>
|
||||||
|
<version>0.0.1-SNAPSHOT</version>
|
||||||
|
|
||||||
|
<!-- SpringBoot -->
|
||||||
|
<parent>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-parent</artifactId>
|
||||||
|
<version>2.0.0.RELEASE</version>
|
||||||
|
<relativePath/>
|
||||||
|
</parent>
|
||||||
|
|
||||||
|
<!-- 定义sa-token版本号 -->
|
||||||
|
<properties>
|
||||||
|
<sa-token-version>1.18.0</sa-token-version>
|
||||||
|
</properties>
|
||||||
|
|
||||||
|
<dependencies>
|
||||||
|
|
||||||
|
<!-- springboot依赖 -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-web</artifactId>
|
||||||
|
</dependency>
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-aop</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- sa-token 权限认证, 在线文档:http://sa-token.dev33.cn/ -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>cn.dev33</groupId>
|
||||||
|
<artifactId>sa-token-spring-boot-starter</artifactId>
|
||||||
|
<version>${sa-token-version}</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- jwt -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>io.jsonwebtoken</groupId>
|
||||||
|
<artifactId>jjwt</artifactId>
|
||||||
|
<version>0.9.1</version>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
<!-- sa-token整合redis (使用jdk默认序列化方式) -->
|
||||||
|
<!-- <dependency>
|
||||||
|
<groupId>cn.dev33</groupId>
|
||||||
|
<artifactId>sa-token-dao-redis</artifactId>
|
||||||
|
<version>${sa-token-version}</version>
|
||||||
|
</dependency> -->
|
||||||
|
|
||||||
|
<!-- sa-token整合redis (使用jackson序列化方式) -->
|
||||||
|
<!-- <dependency>
|
||||||
|
<groupId>cn.dev33</groupId>
|
||||||
|
<artifactId>sa-token-dao-redis-jackson</artifactId>
|
||||||
|
<version>${sa-token-version}</version>
|
||||||
|
</dependency> -->
|
||||||
|
|
||||||
|
<!-- 提供redis连接池 -->
|
||||||
|
<!-- <dependency>
|
||||||
|
<groupId>org.apache.commons</groupId>
|
||||||
|
<artifactId>commons-pool2</artifactId>
|
||||||
|
</dependency> -->
|
||||||
|
|
||||||
|
<!-- sa-token整合SpringAOP实现注解鉴权 -->
|
||||||
|
<!-- <dependency>
|
||||||
|
<groupId>cn.dev33</groupId>
|
||||||
|
<artifactId>sa-token-spring-aop</artifactId>
|
||||||
|
<version>${sa-token-version}</version>
|
||||||
|
</dependency> -->
|
||||||
|
|
||||||
|
<!-- @ConfigurationProperties -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-configuration-processor</artifactId>
|
||||||
|
<optional>true</optional>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
|
|
||||||
|
</dependencies>
|
||||||
|
|
||||||
|
|
||||||
|
</project>
|
@ -241,6 +241,7 @@ public class TestController {
|
|||||||
@RequestMapping("test")
|
@RequestMapping("test")
|
||||||
public AjaxJson test() {
|
public AjaxJson test() {
|
||||||
System.out.println("进来了");
|
System.out.println("进来了");
|
||||||
|
System.out.println(StpUtil.getTokenInfo());
|
||||||
return AjaxJson.getSuccess("访问成功");
|
return AjaxJson.getSuccess("访问成功");
|
||||||
}
|
}
|
||||||
|
|
12
sa-token-demo/sa-token-demo-webflux/.gitignore
vendored
Normal file
12
sa-token-demo/sa-token-demo-webflux/.gitignore
vendored
Normal file
@ -0,0 +1,12 @@
|
|||||||
|
target/
|
||||||
|
|
||||||
|
node_modules/
|
||||||
|
bin/
|
||||||
|
.settings/
|
||||||
|
unpackage/
|
||||||
|
.classpath
|
||||||
|
.project
|
||||||
|
|
||||||
|
.idea/
|
||||||
|
|
||||||
|
.factorypath
|
@ -84,21 +84,23 @@ implementation 'cn.dev33:sa-token-core:1.18.0'
|
|||||||
|
|
||||||
``` js
|
``` js
|
||||||
── sa-token
|
── sa-token
|
||||||
├── sa-token-core // sa-token 核心模块
|
├── sa-token-core // [核心] sa-token 核心模块
|
||||||
├── sa-token-servlet // sa-token 整合 Servlet容器实现类包
|
├── sa-token-starter // [整合] sa-token 与其它框架整合
|
||||||
├── sa-token-spring-boot-starter // sa-token 整合 SpringBoot 快速集成
|
├── sa-token-servlet // [整合] sa-token 整合 Servlet容器实现类包
|
||||||
├── sa-token-reactor-spring-boot-starter // sa-token 整合 Reactor响应式编程 快速集成
|
├── sa-token-spring-boot-starter // [整合] sa-token 整合 SpringBoot 快速集成
|
||||||
├── sa-token-dao-redis // sa-token 整合 Redis (使用jdk默认序列化方式)
|
├── sa-token-reactor-spring-boot-starter // [整合] sa-token 整合 Reactor响应式编程 快速集成
|
||||||
├── sa-token-dao-redis-jackson // sa-token 整合 Redis (使用jackson序列化方式)
|
├── sa-token-plugin // [插件] sa-token 插件合集
|
||||||
├── sa-token-spring-aop // sa-token 整合 SpringAOP 注解鉴权
|
├── sa-token-dao-redis // [插件] sa-token 整合 Redis (使用jdk默认序列化方式)
|
||||||
├── sa-token-oauth2 // sa-token 实现 OAuth2.0 模块(内测暂未发布)
|
├── sa-token-dao-redis-jackson // [插件] sa-token 整合 Redis (使用jackson序列化方式)
|
||||||
├── sa-token-demo-springboot // [示例] sa-token 整合 SpringBoot
|
├── sa-token-spring-aop // [插件] sa-token 整合 SpringAOP 注解鉴权
|
||||||
├── sa-token-demo-jwt // [示例] sa-token 集成 jwt [示例]
|
├── sa-token-oauth2 // [插件] sa-token 实现 OAuth2.0 模块(内测暂未发布)
|
||||||
├── sa-token-demo-webflux // [示例] sa-token 整合 WebFlux [示例]
|
├── sa-token-demo // [示例] sa-token 示例合集
|
||||||
├── sa-token-demo-oauth2 // [示例] sa-token集成OAuth2.0模块 [示例]
|
├── sa-token-demo-springboot // [示例] sa-token 整合 SpringBoot
|
||||||
├── sa-token-demo-oauth2-client // [示例] OAuth2.0 客户端
|
├── sa-token-demo-jwt // [示例] sa-token 集成 jwt [示例]
|
||||||
├── sa-token-demo-oauth2-server // [示例] OAuth2.0 服务端
|
├── sa-token-demo-webflux // [示例] sa-token 整合 WebFlux [示例]
|
||||||
├── sa-token-doc // [文档] sa-token开发文档
|
├── sa-token-demo-oauth2-client // [示例] sa-token 集成 OAuth2.0 (客户端)
|
||||||
|
├── sa-token-demo-oauth2-server // [示例] sa-token 集成 OAuth2.0 (服务端)
|
||||||
|
├── sa-token-doc // [文档] sa-token 开发文档
|
||||||
├──pom.xml
|
├──pom.xml
|
||||||
```
|
```
|
||||||
|
|
||||||
|
25
sa-token-plugin/pom.xml
Normal file
25
sa-token-plugin/pom.xml
Normal file
@ -0,0 +1,25 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>cn.dev33</groupId>
|
||||||
|
<artifactId>sa-token-parent</artifactId>
|
||||||
|
<version>1.18.0</version>
|
||||||
|
</parent>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
|
<name>sa-token-plugin</name>
|
||||||
|
<artifactId>sa-token-plugin</artifactId>
|
||||||
|
<description>sa-token plugins</description>
|
||||||
|
|
||||||
|
<modules>
|
||||||
|
<module>sa-token-dao-redis</module>
|
||||||
|
<module>sa-token-dao-redis-jackson</module>
|
||||||
|
<module>sa-token-oauth2</module>
|
||||||
|
<module>sa-token-spring-aop</module>
|
||||||
|
</modules>
|
||||||
|
|
||||||
|
</project>
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>cn.dev33</groupId>
|
<groupId>cn.dev33</groupId>
|
||||||
<artifactId>sa-token-parent</artifactId>
|
<artifactId>sa-token-plugin</artifactId>
|
||||||
<version>1.18.0</version>
|
<version>1.18.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>cn.dev33</groupId>
|
<groupId>cn.dev33</groupId>
|
||||||
<artifactId>sa-token-parent</artifactId>
|
<artifactId>sa-token-plugin</artifactId>
|
||||||
<version>1.18.0</version>
|
<version>1.18.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>cn.dev33</groupId>
|
<groupId>cn.dev33</groupId>
|
||||||
<artifactId>sa-token-parent</artifactId>
|
<artifactId>sa-token-plugin</artifactId>
|
||||||
<version>1.18.0</version>
|
<version>1.18.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>cn.dev33</groupId>
|
<groupId>cn.dev33</groupId>
|
||||||
<artifactId>sa-token-parent</artifactId>
|
<artifactId>sa-token-plugin</artifactId>
|
||||||
<version>1.18.0</version>
|
<version>1.18.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
24
sa-token-starter/pom.xml
Normal file
24
sa-token-starter/pom.xml
Normal file
@ -0,0 +1,24 @@
|
|||||||
|
<?xml version='1.0' encoding='utf-8'?>
|
||||||
|
<project xmlns="http://maven.apache.org/POM/4.0.0"
|
||||||
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
|
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||||
|
<modelVersion>4.0.0</modelVersion>
|
||||||
|
|
||||||
|
<parent>
|
||||||
|
<groupId>cn.dev33</groupId>
|
||||||
|
<artifactId>sa-token-parent</artifactId>
|
||||||
|
<version>1.18.0</version>
|
||||||
|
</parent>
|
||||||
|
<packaging>pom</packaging>
|
||||||
|
|
||||||
|
<name>sa-token-starter</name>
|
||||||
|
<artifactId>sa-token-starter</artifactId>
|
||||||
|
<description>sa-token starters</description>
|
||||||
|
|
||||||
|
<modules>
|
||||||
|
<module>sa-token-servlet</module>
|
||||||
|
<module>sa-token-spring-boot-starter</module>
|
||||||
|
<module>sa-token-reactor-spring-boot-starter</module>
|
||||||
|
</modules>
|
||||||
|
|
||||||
|
</project>
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>cn.dev33</groupId>
|
<groupId>cn.dev33</groupId>
|
||||||
<artifactId>sa-token-parent</artifactId>
|
<artifactId>sa-token-starter</artifactId>
|
||||||
<version>1.18.0</version>
|
<version>1.18.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
@ -6,7 +6,7 @@
|
|||||||
|
|
||||||
<parent>
|
<parent>
|
||||||
<groupId>cn.dev33</groupId>
|
<groupId>cn.dev33</groupId>
|
||||||
<artifactId>sa-token-parent</artifactId>
|
<artifactId>sa-token-starter</artifactId>
|
||||||
<version>1.18.0</version>
|
<version>1.18.0</version>
|
||||||
</parent>
|
</parent>
|
||||||
<packaging>jar</packaging>
|
<packaging>jar</packaging>
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user