Class SaTokenRedisConfiguration
java.lang.Object
io.github.xezzon.zeroweb.auth.config.SaTokenRedisConfiguration
- All Implemented Interfaces:
org.springframework.boot.CommandLineRunner
@Configuration
@ConditionalOnMissingBean(RedisTemplateFactory.class)
public class SaTokenRedisConfiguration
extends Object
implements org.springframework.boot.CommandLineRunner
应用启动时检查是否配置了 Redis
没有配置 Redis 时,使用内存作为 Session 的存储方式
否则以 Redis 作为 Session 的存储方式
- Author:
- xezzon
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
SaTokenRedisConfiguration
public SaTokenRedisConfiguration()
-
-
Method Details
-
run
- Specified by:
run
in interfaceorg.springframework.boot.CommandLineRunner
-