1
0
mirror of synced 2026-02-21 18:58:26 +08:00

🐛 指定 JustAuth 中 RedisTemplate 默认 Bean 名称

This commit is contained in:
Yangkai.Shen
2019-12-05 16:55:12 +08:00
parent 13fd792521
commit 8a2f4067c2
3 changed files with 3 additions and 3 deletions

View File

@@ -432,7 +432,7 @@ justauth:
### 4.2. SNAPSHOT版本
![https://img.shields.io/badge/snapshots-1.3.1--SNAPSHOT-green](https://img.shields.io/badge/snapshots-1.3.1--SNAPSHOT-green)如果需要体验快照版本,可以在你的 `pom.xml`进行如下配置:
![https://img.shields.io/badge/snapshots-1.3.2--SNAPSHOT-green](https://img.shields.io/badge/snapshots-1.3.2--SNAPSHOT-green)如果需要体验快照版本,可以在你的 `pom.xml`进行如下配置:
```xml
<repositories>

View File

@@ -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>

View File

@@ -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());