File tree Expand file tree Collapse file tree 2 files changed +21
-2
lines changed
Expand file tree Collapse file tree 2 files changed +21
-2
lines changed Original file line number Diff line number Diff line change 3434 <groupId >org.springframework.boot</groupId >
3535 <artifactId >spring-boot-starter-web</artifactId >
3636 </dependency >
37+ <!-- Spring Data Redis Session -->
38+ <dependency >
39+ <groupId >org.springframework.boot</groupId >
40+ <artifactId >spring-boot-starter-data-redis</artifactId >
41+ </dependency >
42+ <dependency >
43+ <groupId >org.springframework.session</groupId >
44+ <artifactId >spring-session-data-redis</artifactId >
45+ </dependency >
3746 <dependency >
3847 <groupId >cn.hutool</groupId >
3948 <artifactId >hutool-all</artifactId >
Original file line number Diff line number Diff line change 88 url : jdbc:mysql://localhost:3306/coder-test?useUnicode=true&characterEncoding=utf-8&useSSL=false&serverTimezone=Asia/Shanghai
99 username : root
1010 password : 123456
11+ # Redis 配置
12+ data :
13+ redis :
14+ host : localhost
15+ port : 6379
16+ database : 0
17+ timeout : 3000ms
18+ # Session 配置
1119 session :
12- timeout : 86400
13- store-type : memory
20+ store-type : redis
21+ timeout : 86400s
22+ redis :
23+ namespace : spring:session
1424server :
1525 port : 8123
1626 servlet :
You can’t perform that action at this time.
0 commit comments