Commit 9ef00176 by liqiuwei

add redis-starter

parent 6f1d5fca
......@@ -10,6 +10,11 @@
<modelVersion>4.0.0</modelVersion>
<artifactId>matrix-datahelper-redis-starter</artifactId>
<dependencies>
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-data-redis</artifactId>
</dependency>
</dependencies>
</project>
\ No newline at end of file
package com.secoo.mall.redis.config;
package com.secoo.mall.mybatis.spring.boot.autoconfigure;
import com.secoo.mall.redis.utils.MatrixRedisClusterUtils;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingBean;
......@@ -29,12 +29,4 @@ public class MatrixeRedisAutoConfiguration {
redisTemplate.setHashValueSerializer(stringSerializer);
return redisTemplate;
}
@Bean
@ConditionalOnMissingBean(MatrixRedisClusterUtils.class)
public MatrixRedisClusterUtils jedisClusterUtils() {
return new MatrixRedisClusterUtils();
}
}
......@@ -13,6 +13,7 @@
<packaging>pom</packaging>
<modules>
<module>matrix-datahelper-redis-core</module>
<module>matrix-datahelper-redis-starter</module>
</modules>
<dependencyManagement>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment