application.yml
3.0 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
server:
port: 19031
# spring 配置
spring:
security:
user:
name: admin
password: 123456
application:
name: message-bus-service
data:
elasticsearch:
repositories:
enabled: true
# 数据源配置
datasource:
type: com.alibaba.druid.pool.DruidDataSource
driver-class-name: com.mysql.cj.jdbc.Driver
url: jdbc:mysql://118.31.66.166:3306/bus_service?characterEncoding=utf8&serverTimezone=Asia/Shanghai&rewriteBatchedStatements=true
username: 110
password: QAHqCJf2kFYCLirM
# redis设置
redis:
database: 0 # Redis 数据库索引(默认为 0)
host: 192.168.1.53 # Redis 服务器地址
port: 6379 # Redis 服务器连接端口
password: # Redis 服务器连接密码(默认为空)
lettuce:
pool:
max-active: 8 # 连接池最大连接数(使用负值表示没有限制) 默认 8
max-wait: -1 # 连接池最大阻塞等待时间(使用负值表示没有限制) 默认 -1
max-idle: 8 # 连接池中的最大空闲连接 默认 8
min-idle: 0 # 连接池中的最小空闲连接 默认 0
# rabbitmq配置
rabbitmq:
host: 192.168.1.63
port: 5672
username: mrz
password: vmvnv1v2
virtual-host: /
# 多环境配置
profiles:
active: dev
# Jackson配置
jackson:
default-property-inclusion: ALWAYS
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
# mybatis 配置
mybatis:
mapper-locations: classpath:mapper/*.xml
type-aliases-package: com.sunyo.wlpt.message.bus.service.domain
debug: false
# 日志配置
logging:
config: config/logback-dev.xml
level:
com.sunyo.wlpt.message.bus.service.mapper: debug
logback:
appname: message-bus-service
logdir: ./log
#eureka 配置
eureka:
instance:
status-page-url: http://${eureka.instance.hostname}:${server.port}/index
prefer-ip-address: true
instance-id: ${spring.cloud.client.ip-address}:${server.port}
hostname: ${spring.cloud.client.ip-address}
metadata-map:
user:
name: "admin"
password: "123456"
client:
healthcheck:
enabled: true
service-url:
defaultZone: http://192.168.1.53:12345/eureka/
# boot admin
management:
endpoints:
enabled-by-default: true
web:
exposure:
include: "*"
endpoint:
health:
show-details: always
shutdown:
enabled: true
health:
rabbit:
enabled: false
elasticsearch:
enabled: false
elasticsearch:
# http连接超时时间
connectTimeout: 3000
# socket连接超时时间
socketTimeout: 60000
# 获取连接的超时时间,
connectionRequestTimeout: 3000
# 最大连接数
maxConnTotal: 3000
# 最大路由连接数
maxConnPerRoute: 3000
# 任务最长可执行时间 (单位:小时)
executeTimeout: 10
# 链接凭证:用户名
username: admin
# 链接凭证:密码
password: 123456
# 基础信息配置
info:
version: 1.0
description: "消息总线平台——后台管理服务"