首页>代码>Spring Boot整合Java开源OAuth库ScribeJava实现第三方用户登录授权实例,支持QQ,微信,微博等平台>/scribejava-oauth2/src/main/java/com/hellokoding/springboot/oauth2/RedisConfig.java
package com.hellokoding.springboot.oauth2;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.data.redis.connection.RedisConnectionFactory;
import org.springframework.data.redis.core.RedisTemplate;
import org.springframework.data.redis.serializer.RedisSerializer;
@Configuration
public class RedisConfig {
@Bean
public RedisTemplate<String, Object> redisTemplate(RedisConnectionFactory redisConnectionFactory) {
RedisTemplate<String, Object> template = new RedisTemplate<>();
template.setKeySerializer(RedisSerializer.string());
template.setConnectionFactory(redisConnectionFactory);
return template;
}
}
最近浏览更多
sjwc88 LV4
2024年12月15日
15578157792 LV7
2024年12月6日
哪里的完整版 LV8
2024年9月20日
dapeng0011 LV15
2024年8月25日
唐僧洗头爱飘柔 LV22
2024年6月21日
叁卍石 LV5
2024年3月20日
kaye7549317
2024年1月16日
暂无贡献等级
mukoooo LV2
2023年12月5日
hhsoft LV1
2023年10月22日
601601lmy LV5
2023年7月12日

最近下载
