基于Redis分布式权限校验整合完成

This commit is contained in:
2023-08-19 17:34:14 +08:00
parent 6c3b4925cf
commit 8097d4c0e8
11 changed files with 105 additions and 5 deletions

View File

@@ -18,6 +18,20 @@
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
</properties>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-security</artifactId>
</dependency>
<!-- SpringSession Redis支持 -->
<dependency>
<groupId>org.springframework.session</groupId>
<artifactId>spring-session-data-redis</artifactId>
</dependency>
<!-- 添加Redis的Starter -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId>

View File

@@ -6,3 +6,11 @@ spring:
url: jdbc:mysql://43.143.164.194:3306/mac
username: mac
password: mactest
session:
# 存储类型修改为redis
store-type: redis
redis:
# Redis服务器的信息该咋写咋写
host: 43.143.164.194
port: 6379
password: redis