🐛 指定 JustAuth 中 RedisTemplate 默认 Bean 名称
This commit is contained in:
@@ -432,7 +432,7 @@ justauth:
|
||||
|
||||
### 4.2. SNAPSHOT版本
|
||||
|
||||
如果需要体验快照版本,可以在你的 `pom.xml`进行如下配置:
|
||||
如果需要体验快照版本,可以在你的 `pom.xml`进行如下配置:
|
||||
|
||||
```xml
|
||||
<repositories>
|
||||
|
||||
2
pom.xml
2
pom.xml
@@ -23,7 +23,7 @@
|
||||
|
||||
<groupId>com.xkcoding.justauth</groupId>
|
||||
<artifactId>justauth-spring-boot-starter</artifactId>
|
||||
<version>1.3.1</version>
|
||||
<version>1.3.2-SNAPSHOT</version>
|
||||
|
||||
<name>justauth-spring-boot-starter</name>
|
||||
<url>https://github.com/xkcoding/justauth-spring-boot-starter</url>
|
||||
|
||||
@@ -54,7 +54,7 @@ abstract class JustAuthStateCacheConfiguration {
|
||||
log.debug("JustAuth 使用 Redis 缓存存储 state 数据");
|
||||
}
|
||||
|
||||
@Bean
|
||||
@Bean(name = "justAuthRedisCacheTemplate")
|
||||
public RedisTemplate<String, String> justAuthRedisCacheTemplate(RedisConnectionFactory redisConnectionFactory) {
|
||||
RedisTemplate<String, String> template = new RedisTemplate<>();
|
||||
template.setKeySerializer(new StringRedisSerializer());
|
||||
|
||||
Reference in New Issue
Block a user