Skip to content

Commit

Permalink
配置文件修改
Browse files Browse the repository at this point in the history
  • Loading branch information
macrozheng committed Jun 9, 2019
1 parent e0bcd0c commit dbead7c
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
7 changes: 7 additions & 0 deletions mall-portal/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,13 @@ spring:
min-idle: 0 # 连接池中的最小空闲连接
timeout: 0ms # 连接超时时间(毫秒)

rabbitmq:
host: rabbit
port: 5672
virtual-host: /mall
username: mall
password: mall
publisher-confirms: true #如果对异步消息需要回调必须设置为true
# 日志配置
logging:
path: /var/logs
Expand Down
4 changes: 2 additions & 2 deletions mall-search/src/main/resources/application-prod.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
spring:
datasource:
url: jdbc:mysql://localhost:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
url: jdbc:mysql://db:3306/mall?useUnicode=true&characterEncoding=utf-8&serverTimezone=Asia/Shanghai
username: reader
password: 123456
druid:
Expand All @@ -17,7 +17,7 @@ spring:
elasticsearch:
repositories:
enabled: true
cluster-nodes: 127.0.0.1:9300
cluster-nodes: es:9300

logging:
path: /var/logs #配置日志生成路径

0 comments on commit dbead7c

Please sign in to comment.