|
@@ -4,6 +4,8 @@ spring:
|
|
password: tuonq520
|
|
password: tuonq520
|
|
url: jdbc:mysql://192.168.42.1:5201/tuonq_config?useUnicode=true&characterEncoding=utf-8&useSSL=false&zeroDateTimeBehavior=convertToNull
|
|
url: jdbc:mysql://192.168.42.1:5201/tuonq_config?useUnicode=true&characterEncoding=utf-8&useSSL=false&zeroDateTimeBehavior=convertToNull
|
|
|
|
|
|
|
|
+ # 用docker swarm部署,注意一下数据库的连接名称
|
|
|
|
+
|
|
session:
|
|
session:
|
|
store-type: redis
|
|
store-type: redis
|
|
|
|
|
|
@@ -19,7 +21,8 @@ spring:
|
|
|
|
|
|
eureka:
|
|
eureka:
|
|
instance:
|
|
instance:
|
|
- ip-address: 192.168.42.1
|
|
|
|
|
|
+ hostname: config.tonyandmoney.cn
|
|
|
|
+ prefer-ip-address: false
|
|
client:
|
|
client:
|
|
service-url:
|
|
service-url:
|
|
defaultZone: http://config.tonyandmoney.cn/eureka/
|
|
defaultZone: http://config.tonyandmoney.cn/eureka/
|