diff --git a/spring-data-redis/.classpath b/spring-data-redis/.classpath
deleted file mode 100644
index 9ae7bca0fc..0000000000
--- a/spring-data-redis/.classpath
+++ /dev/null
@@ -1,31 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/spring-data-redis/.project b/spring-data-redis/.project
deleted file mode 100644
index 06547e2b9c..0000000000
--- a/spring-data-redis/.project
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
- sprint-data-redis
-
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- org.springframework.ide.eclipse.core.springbuilder
-
-
-
-
- org.eclipse.m2e.core.maven2Builder
-
-
-
-
-
- org.springframework.ide.eclipse.core.springnature
- org.eclipse.jdt.core.javanature
- org.eclipse.m2e.core.maven2Nature
-
-
diff --git a/spring-data-redis/pom.xml b/spring-data-redis/pom.xml
index 56c83adcf7..25686fca16 100644
--- a/spring-data-redis/pom.xml
+++ b/spring-data-redis/pom.xml
@@ -1,16 +1,15 @@
-
+
+
4.0.0
-
com.baeldung
- sprint-data-redis
- 0.0.1-SNAPSHOT
+ spring-data-redis
+ 1.0
jar
UTF-8
-
4.2.5.RELEASE
-
1.6.2.RELEASE
0.8.0
@@ -72,7 +71,6 @@
nosqlunit-redis
${nosqlunit.version}
-
diff --git a/spring-data-redis/src/main/java/com/baeldung/spring/data/redis/config/RedisConfig.java b/spring-data-redis/src/main/java/com/baeldung/spring/data/redis/config/RedisConfig.java
new file mode 100644
index 0000000000..4fd83a2bb6
--- /dev/null
+++ b/spring-data-redis/src/main/java/com/baeldung/spring/data/redis/config/RedisConfig.java
@@ -0,0 +1,55 @@
+package com.baeldung.spring.data.redis.config;
+
+import com.baeldung.spring.data.redis.queue.MessagePublisher;
+import com.baeldung.spring.data.redis.queue.RedisMessagePublisher;
+import com.baeldung.spring.data.redis.queue.RedisMessageSubscriber;
+import org.springframework.context.annotation.Bean;
+import org.springframework.context.annotation.ComponentScan;
+import org.springframework.context.annotation.Configuration;
+import org.springframework.data.redis.connection.jedis.JedisConnectionFactory;
+import org.springframework.data.redis.core.RedisTemplate;
+import org.springframework.data.redis.listener.ChannelTopic;
+import org.springframework.data.redis.listener.RedisMessageListenerContainer;
+import org.springframework.data.redis.listener.adapter.MessageListenerAdapter;
+import org.springframework.data.redis.serializer.GenericToStringSerializer;
+
+@Configuration
+@ComponentScan("com.baeldung.spring.data.redis")
+public class RedisConfig {
+
+ @Bean
+ JedisConnectionFactory jedisConnectionFactory() {
+ return new JedisConnectionFactory();
+ }
+
+ @Bean
+ public RedisTemplate redisTemplate() {
+ final RedisTemplate template = new RedisTemplate();
+ template.setConnectionFactory(jedisConnectionFactory());
+ template.setValueSerializer(new GenericToStringSerializer