Added description

This commit is contained in:
gmod11
2021-01-04 17:02:47 +01:00
parent ad0687e57e
commit 162dafafb6
4 changed files with 512 additions and 46 deletions

View File

@@ -14,6 +14,13 @@ import redis.clients.jedis.JedisPool;
import java.util.Objects;
/**
* RedisConfig is a class that reads properties from Environment singleton instance and builds beans based on them.
* JedisPool ?- an instance of the JedisPool class that contains info about host and port of Reddis
* JedisConnectionFactory - ConnectionFactory created based on host and port provided by Environment
* RedisTemplate - Creates map-like object which contains ConnectionFactory and sets parameters. Uses Jackson
* deserialiazer
*/
@Configuration
@EnableRedisRepositories
@PropertySource("classpath:data-access.properties")