mirror of https://gitee.com/stylefeng/roses
【7.0.1】修复缓存名称问题
parent
ccb2534945
commit
5c96338fba
|
@ -55,7 +55,7 @@ public class GunsRedisCacheAutoConfiguration {
|
|||
* @date 2021/1/31 20:45
|
||||
*/
|
||||
@Bean
|
||||
public RedisTemplate<String, String> stringRedisTemplate(RedisConnectionFactory redisConnectionFactory) {
|
||||
public RedisTemplate<String, String> gunsStringRedisTemplate(RedisConnectionFactory redisConnectionFactory) {
|
||||
RedisTemplate<String, String> template = new RedisTemplate<>();
|
||||
template.setConnectionFactory(redisConnectionFactory);
|
||||
template.setKeySerializer(new StringRedisSerializer());
|
||||
|
|
Loading…
Reference in New Issue