mirror of
https://github.com/RemainderTime/spring-boot-base-demo.git
synced 2026-04-21 19:27:32 +08:00
引入 spring security
This commit is contained in:
6
pom.xml
6
pom.xml
@@ -170,6 +170,12 @@
|
|||||||
<version>4.40.0.ALL</version>
|
<version>4.40.0.ALL</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
|
|
||||||
|
<!-- 引入 spring security -->
|
||||||
|
<dependency>
|
||||||
|
<groupId>org.springframework.boot</groupId>
|
||||||
|
<artifactId>spring-boot-starter-security</artifactId>
|
||||||
|
</dependency>
|
||||||
|
|
||||||
</dependencies>
|
</dependencies>
|
||||||
|
|
||||||
<build>
|
<build>
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ public class TokenInterceptor implements HandlerInterceptor {
|
|||||||
private RedisTemplate redisTemplate;
|
private RedisTemplate redisTemplate;
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
//不拦截的请求列表
|
//不拦截的请求列表
|
||||||
private static final List<String> EXCLUDE_PATH_LIST = Arrays.asList("/user/login", "/web/login","/swagger-ui.html","/v3/api-docs","/swagger-ui/index.html");
|
private static final List<String> EXCLUDE_PATH_LIST = Arrays.asList("/user/login", "/web/login","/swagger-ui.html","/v3/api-docs","/swagger-ui/index.html");
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user