diff options
Diffstat (limited to 'src/main/java/at/gv/egiz/moazs')
-rw-r--r-- | src/main/java/at/gv/egiz/moazs/config/RedisConfig.java | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main/java/at/gv/egiz/moazs/config/RedisConfig.java b/src/main/java/at/gv/egiz/moazs/config/RedisConfig.java index 84e85d7..50788b4 100644 --- a/src/main/java/at/gv/egiz/moazs/config/RedisConfig.java +++ b/src/main/java/at/gv/egiz/moazs/config/RedisConfig.java @@ -11,9 +11,6 @@ import org.springframework.data.redis.serializer.StringRedisSerializer; @Configuration public class RedisConfig { - public RedisConfig() { - } - @Value("${spring.redis.host}") private String host; @@ -35,7 +32,7 @@ public class RedisConfig { @Bean public RedisTemplate<String, Object> redisTemplate() { - final RedisTemplate<String, Object> template = new RedisTemplate<String, Object>(); + final RedisTemplate<String, Object> template = new RedisTemplate<>(); template.setConnectionFactory(jedisConnectionFactory()); template.setDefaultSerializer(stringRedisSerializer()); return template; |