首页>代码>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; } }
最近浏览更多
叁卍石 LV3
3月20日
kaye7549317
1月16日
暂无贡献等级
mukoooo LV2
2023年12月5日
hhsoft LV1
2023年10月22日
601601lmy LV5
2023年7月12日
guest0
2023年5月22日
暂无贡献等级
1529860026 LV24
2023年4月20日
神龙摆尾无拘束 LV2
2023年3月17日
微信网友_6263159342649344 LV7
2022年12月16日
微信网友_6254581278117888
2022年12月9日
暂无贡献等级