新增全局过滤器认证鉴权,增强防渗透扫描处理

This commit is contained in:
shengzhang
2021-04-12 03:22:01 +08:00
parent 8c6cd9a668
commit 15b0da6351
17 changed files with 342 additions and 47 deletions

View File

@@ -31,7 +31,7 @@
<artifactId>spring-boot-starter-aop</artifactId>
</dependency>
<!-- sa-token 权限认证, 在线文档http://sa-token.dev33.cn/ -->
<!-- Sa-Token 权限认证, 在线文档http://sa-token.dev33.cn/ -->
<dependency>
<groupId>cn.dev33</groupId>
<artifactId>sa-token-spring-boot-starter</artifactId>

View File

@@ -13,9 +13,11 @@ import cn.dev33.satoken.interceptor.SaAnnotationInterceptor;
*
*/
@Configuration
public class SaTokenConfiguration implements WebMvcConfigurer {
public class SaTokenConfigure implements WebMvcConfigurer {
// 注册sa-token的拦截器打开注解式鉴权功能
/**
* 注册sa-token的拦截器打开注解式鉴权功能
*/
@Override
public void addInterceptors(InterceptorRegistry registry) {
// 注册注解拦截器