Commit 87faca08063f9df6279dab201d21165695700a0d

Authored by fangcheng
1 parent 0ef7fdd087
Exists in master

修改redis ip和密码为测试redis

Showing 2 changed files with 8 additions and 3 deletions

hospital.web/src/main/resources/dev/redis.properties View file @ 87faca0
1   -redis.host1=127.0.0.1
  1 +redis.host1=119.90.57.26
2 2 redis.port1=6379
3   -redis.password1=
  3 +redis.password1=Lyms123456
  4 +#redis.host1=127.0.0.1
  5 +#redis.port1=6379
  6 +#redis.password1=Lyms123456
  7 +
  8 +
4 9 #redis.password1=
5 10 #redis.host2=192.168.56.254
6 11 #redis.port2=6382
hospital.web/src/main/resources/dev/xml/app-redis.xml View file @ 87faca0
... ... @@ -6,7 +6,7 @@
6 6 http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd">
7 7  
8 8 <bean id="redisConnectionFactory" class="org.springframework.data.redis.connection.jedis.JedisConnectionFactory"
9   - p:host-name="${redis.host1}" p:port="${redis.port1}" p:pool-config-ref="poolConfig"/>
  9 + p:host-name="${redis.host1}" p:port="${redis.port1}" p:password="${redis.password1}" p:pool-config-ref="poolConfig"/>
10 10  
11 11 <bean id="poolConfig" class="redis.clients.jedis.JedisPoolConfig">
12 12 <property name="minIdle" value="${redis.minIdle}" />