新增Reactor响应式编程支持,WebFlux集成!

This commit is contained in:
shengzhang
2021-04-11 22:05:36 +08:00
parent 15eefbed33
commit 8c6cd9a668
57 changed files with 1786 additions and 154 deletions

View File

@@ -46,17 +46,17 @@
</dependency> -->
<!-- sa-token整合redis (使用jackson序列化方式) -->
<dependency>
<!-- <dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-dao-redis-jackson</artifactId>
<version>${sa-token-version}</version>
</dependency>
</dependency> -->
<!-- 提供redis连接池 -->
<dependency>
<!-- <dependency>
<groupId>org.apache.commons</groupId>
<artifactId>commons-pool2</artifactId>
</dependency>
</dependency> -->
<!-- sa-token整合SpringAOP实现注解鉴权 -->
<!-- <dependency>

View File

@@ -5,6 +5,11 @@ import org.springframework.boot.autoconfigure.SpringBootApplication;
import cn.dev33.satoken.SaTokenManager;
/**
* sa-token整合SpringBoot 示例
* @author kong
*
*/
@SpringBootApplication
public class SaTokenDemoApplication {

View File

@@ -6,13 +6,14 @@ import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
import cn.dev33.satoken.interceptor.SaAnnotationInterceptor;
/**
* sa-token代码方式进行配置
* [Sa-Token 权限认证] 配置类
* @author kong
*
*/
@Configuration
public class MySaTokenConfig implements WebMvcConfigurer {
public class SaTokenConfiguration implements WebMvcConfigurer {
// 注册sa-token的拦截器打开注解式鉴权功能
@Override