@@ -0,0 +1,1335 @@
+package com.epam.itweek.boosenger.repository.redis.support;%0A%0Aimport org.springframework.context.annotation.Bean;%0Aimport org.springframework.context.annotation.Configuration;%0Aimport org.springframework.data.redis.connection.RedisConnectionFactory;%0Aimport org.springframework.data.redis.core.RedisTemplate;%0Aimport org.springframework.data.redis.serializer.Jackson2JsonRedisSerializer;%0A%0Aimport com.epam.itweek.boosenger.domain.Message;%0Aimport com.fasterxml.jackson.databind.ObjectMapper;%0Aimport com.fasterxml.jackson.datatype.jsr310.JSR310Module;%0A%0A@Configuration%0Apublic class RedisConfiguration %7B%0A%0A    @Bean%0A    public RedisTemplate%3CString, Message%3E messageRedisTemplate(RedisConnectionFactory redisConnectionFactory) %7B%0A        RedisTemplate%3CString, Message%3E redisTemplate = new RedisTemplate%3C%3E();%0A        Jackson2JsonRedisSerializer%3CMessage%3E jackson2JsonRedisSerializer = new Jackson2JsonRedisSerializer%3C%3E(Message.class);%0A        ObjectMapper objectMapper = new ObjectMapper();%0A        objectMapper.registerModule(new JSR310Module());%0A        jackson2JsonRedisSerializer.setObjectMapper(objectMapper);%0A        redisTemplate.setDefaultSerializer(jackson2JsonRedisSerializer);%0A        redisTemplate.setEnableDefaultSerializer(true);%0A        redisTemplate.setConnectionFactory(redisConnectionFactory);%0A        return redisTemplate;%0A    %7D%0A%7D%0A

Add Redis configuration