<!-- redis -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
<!-- redis-session -->
<dependency>
<groupId>org.springframework.session</groupId>
<artifactId>spring-session-data-redis</artifactId>
</dependency>
设置redis中的session有效时间为
@EnableRedisHttpSession(maxInactiveIntervalInSeconds= 7200)
可以查看https://www.cnblogs.com/sanri1993/p/12120486.html
spring session 官方文档:Spring Session
看到最后,画重点了,如果您需要(智慧餐厅)有关设备,或者身边有这样的资源,可以推荐给我,达成合作后,你懂的,致富链接: