配置文件修改
This commit is contained in:
@@ -1,4 +1,6 @@
|
||||
eureka:
|
||||
client:
|
||||
service-url:
|
||||
defaultZone: http://mall-registry:8001/eureka/
|
||||
defaultZone: http://mall-registry:8001/eureka/
|
||||
instance:
|
||||
prefer-ip-address: true
|
||||
@@ -1,29 +1,23 @@
|
||||
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: root
|
||||
password: root
|
||||
data:
|
||||
mongodb:
|
||||
host: localhost
|
||||
host: mongo
|
||||
port: 27017
|
||||
database: mall-port
|
||||
redis:
|
||||
host: localhost # Redis服务器地址
|
||||
host: redis # Redis服务器地址
|
||||
database: 0 # Redis数据库索引(默认为0)
|
||||
port: 6379 # Redis服务器连接端口
|
||||
password: 123456 # Redis服务器连接密码(默认为空)
|
||||
password: #不设置密码
|
||||
rabbitmq:
|
||||
host: localhost
|
||||
host: rabbit
|
||||
port: 5672
|
||||
virtual-host: /mall
|
||||
username: mall
|
||||
password: mall
|
||||
publisher-confirms: true #如果对异步消息需要回调必须设置为true
|
||||
# 日志配置
|
||||
logging:
|
||||
level:
|
||||
org.springframework.data.mongodb.core: debug
|
||||
com.macro.mall.mapper: debug
|
||||
com.macro.mall.portal.dao: debug
|
||||
|
||||
|
||||
Reference in New Issue
Block a user