1:修改id映射关系存放到redis中
2:修改存储配置时分组关系的key为groupid+编译id 3:新增redistemplete15
This commit is contained in:
@@ -61,6 +61,10 @@
|
||||
p:host-name="${redis.host}" p:port="${redis.port}" p:pool-config-ref="poolConfig"
|
||||
p:database="6" />
|
||||
|
||||
<bean id="connectionFactory15"
|
||||
class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory"
|
||||
p:host-name="${redis.host}" p:port="${redis.port}" p:pool-config-ref="poolConfig"
|
||||
p:database="15" />
|
||||
|
||||
|
||||
|
||||
@@ -148,5 +152,14 @@
|
||||
<!-- 设置开启事务 -->
|
||||
<property name="enableTransactionSupport" value="true" />
|
||||
</bean>
|
||||
|
||||
<bean id="redisTemplate15" class="org.springframework.data.redis.core.RedisTemplate">
|
||||
<property name="connectionFactory" ref="connectionFactory15" />
|
||||
<!-- 设置key和value的序列化方式,默认使用的是JdkSerializationRedisSerializer,key会被序列化为\xac\xed\x00\x056\x00 -->
|
||||
<property name="keySerializer" ref="stringRedisSerializer" />
|
||||
<property name="valueSerializer" ref="stringRedisSerializer" />
|
||||
<property name="hashKeySerializer" ref="stringRedisSerializer" />
|
||||
<property name="hashValueSerializer" ref="stringRedisSerializer" />
|
||||
<!-- 设置开启事务 -->
|
||||
<property name="enableTransactionSupport" value="true" />
|
||||
</bean>
|
||||
</beans>
|
||||
|
||||
@@ -246,4 +246,6 @@ digest.gen.tool.path=maat-redis/digest_gen
|
||||
|
||||
|
||||
##redis中有多少个数据库
|
||||
maxRedisDBIndex=6
|
||||
maxRedisDBIndex=6
|
||||
##存放编译,分组,域配置id关系的redis数据库编号
|
||||
idRelaRedisDBIndex=15
|
||||
Reference in New Issue
Block a user