mirror of
https://github.com/RemainderTime/spring-boot-base-demo.git
synced 2026-03-05 03:30:45 +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>
|
||||
</dependency>
|
||||
|
||||
<!-- 引入 spring security -->
|
||||
<dependency>
|
||||
<groupId>org.springframework.boot</groupId>
|
||||
<artifactId>spring-boot-starter-security</artifactId>
|
||||
</dependency>
|
||||
|
||||
</dependencies>
|
||||
|
||||
<build>
|
||||
|
||||
@@ -31,6 +31,7 @@ public class TokenInterceptor implements HandlerInterceptor {
|
||||
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");
|
||||
|
||||
|
||||
Reference in New Issue
Block a user