From 87faca08063f9df6279dab201d21165695700a0d Mon Sep 17 00:00:00 2001 From: fangcheng Date: Mon, 6 Mar 2017 12:47:34 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E6=94=B9redis=20ip=E5=92=8C=E5=AF=86?= =?UTF-8?q?=E7=A0=81=E4=B8=BA=E6=B5=8B=E8=AF=95redis?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- hospital.web/src/main/resources/dev/redis.properties | 9 +++++++-- hospital.web/src/main/resources/dev/xml/app-redis.xml | 2 +- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/hospital.web/src/main/resources/dev/redis.properties b/hospital.web/src/main/resources/dev/redis.properties index 98426cc..f6314e7 100644 --- a/hospital.web/src/main/resources/dev/redis.properties +++ b/hospital.web/src/main/resources/dev/redis.properties @@ -1,6 +1,11 @@ -redis.host1=127.0.0.1 +redis.host1=119.90.57.26 redis.port1=6379 -redis.password1= +redis.password1=Lyms123456 +#redis.host1=127.0.0.1 +#redis.port1=6379 +#redis.password1=Lyms123456 + + #redis.password1= #redis.host2=192.168.56.254 #redis.port2=6382 diff --git a/hospital.web/src/main/resources/dev/xml/app-redis.xml b/hospital.web/src/main/resources/dev/xml/app-redis.xml index 74ee746..b6faac6 100644 --- a/hospital.web/src/main/resources/dev/xml/app-redis.xml +++ b/hospital.web/src/main/resources/dev/xml/app-redis.xml @@ -6,7 +6,7 @@ http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-4.0.xsd"> + p:host-name="${redis.host1}" p:port="${redis.port1}" p:password="${redis.password1}" p:pool-config-ref="poolConfig"/> -- 1.8.3.1