微服务模式相关服务的链接改成host模式

pull/2345/head
zhangdaiscott 2021-03-09 11:19:51 +08:00
parent ad4eb300f0
commit f942abe09b
1 changed files with 7 additions and 7 deletions

View File

@ -35,9 +35,9 @@ spring:
datasource: datasource:
master: master:
url: jdbc:mysql://127.0.0.1:3306/jeecg-boot?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai url: jdbc:mysql://${MYSQL-HOST:jeecg-boot-mysql}:${MYSQL-PORT:3306}/${MYSQL-DB:jeecg-boot}?characterEncoding=UTF-8&useUnicode=true&useSSL=false&tinyInt1isBit=false&allowPublicKeyRetrieval=true&serverTimezone=Asia/Shanghai
username: root username: ${MYSQL-USER:root}
password: root password: ${MYSQL-PWD:root}
driver-class-name: com.mysql.cj.jdbc.Driver driver-class-name: com.mysql.cj.jdbc.Driver
# 多数据源配置 # 多数据源配置
#multi-datasource1: #multi-datasource1:
@ -48,7 +48,7 @@ spring:
#redis 配置 #redis 配置
redis: redis:
database: 0 database: 0
host: 127.0.0.1 host: jeecg-boot-redis
lettuce: lettuce:
pool: pool:
max-active: 8 #最大连接数据库连接数,设 0 为没有限制 max-active: 8 #最大连接数据库连接数,设 0 为没有限制
@ -60,7 +60,7 @@ spring:
port: 6379 port: 6379
#rabbitmq配置 #rabbitmq配置
rabbitmq: rabbitmq:
host: 127.0.0.1 host: jeecg-boot-rabbitmq
username: guest username: guest
password: guest password: guest
port: 5672 port: 5672
@ -129,7 +129,7 @@ jeecg :
#xxl-job配置 #xxl-job配置
xxljob: xxljob:
enabled: false enabled: false
adminAddresses: http://127.0.0.1:9080/xxl-job-admin adminAddresses: http://jeecg-boot-xxljob:9080/xxl-job-admin
appname: ${spring.application.name} appname: ${spring.application.name}
accessToken: '' accessToken: ''
logPath: logs/jeecg/job/jobhandler/ logPath: logs/jeecg/job/jobhandler/
@ -142,7 +142,7 @@ jeecg :
data-type: yml data-type: yml
#分布式锁配置 #分布式锁配置
redisson: redisson:
address: 127.0.0.1:6379 address: jeecg-boot-redis:6379
password: password:
type: STANDALONE type: STANDALONE
enabled: true enabled: true