application.yml
5.4 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
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
#上传文件的路径,要带斜杠
web:
upload-path: upload/
server:
port: 11112
servlet:
context-path: ${SERVER_CONTEXTPATH:}
spring:
devtools:
add-properties: false
profiles:
active: dev
mvc:
#静态资源,设置上传文件的访问,
static-path-pattern: /**
resources:
static-locations: classpath:/META-INF/resources/,classpath:/static,classpath:/resources/,file:${web.upload-path}
application:
name: message-bus-trans-message
redis:
# host: 127.0.0.1
host: 8.131.245.248
port: 6379
password: dsly@admin
jackson:
serialization:
FAIL_ON_EMPTY_BEANS: false
#springboot2.0之后会把Date类型字段自动给转成UTC字符串 如:1990-11-26T16:00:00.000+0000,如果想转成时间戳在application.properties配置文件增加以下配置
date-format: yyyy-MM-dd HH:mm:ss
#时区必须要设置
time-zone: GMT+8
#ALWAYS的意思是即时属性为null,仍然也会输出这个key
default-property-inclusion: always
cloud:
#eureka主机名,会在控制页面中显示
#DEV环境关闭注册。
features:
enabled: true
discovery:
enabled: true
service-registry:
auto-registration:
enabled: true
datasource:
type: com.alibaba.druid.pool.DruidDataSource
#oracle
#driver-class-name=oracle.jdbc.OracleDriver
#url=jdbc:oracle:thin:@10.50.3.68:1521:CGODW
#username=CGOETL
#password=1q2w3e4r
#spring datasource mysql,注意编码配置,缺少数据库编码配置容易引起中文入库乱码
# url: jdbc:mysql://118.31.66.166:3306/station?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
url: jdbc:mysql://8.131.245.248:3306/zz_logistics?useUnicode=true&characterEncoding=utf8&serverTimezone=GMT%2B8
username: root
password: ZZdsly123
driver-class-name: com.mysql.cj.jdbc.Driver
#配置初始化大小/最小/最大
druid:
initial-size: 10
min-idle: 10
max-active: 20
#获取连接等待超时时间
max-wait: 60000
#一个连接在池中最小生存的时间
min-evictable-idle-time-millis: 300000
#间隔多久进行一次检测,检测需要关闭的空闲连接
time-between-eviction-runs-millis: 60000
#mysql
validation-query: SELECT 1 FROM DUAL
#oracle
#druid.validation-query:SELECT 'x' FROM DUAL
test-while-idle: true
test-on-borrow: false
test-on-return: false
default-auto-commit: true
# tomcat:
# max-wait: 10
# max-idle: 10000
# min-idle: 5
# initial-size: 5
eureka:
instance:
#eureka服务器页面中status的请求路径
# 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}
lease-renewal-interval-in-seconds: 15
lease-expiration-duration-in-seconds: 45
health-check-url-path: /actuator/health
metadata-map:
user:
name: "admin" #These two are needed so that the server
password: "123456"
client:
#eureka注册中心服务器地址
service-url:
# defaultZone: http://127.0.0.1:12345/eureka/
defaultZone: http://192.168.1.53:12345/eureka/
registry-fetch-interval-seconds: 30
management:
endpoints:
enabled-by-default: true
web:
exposure:
include: "*"
endpoint:
health:
show-details: always
shutdown:
enabled: true
mybatis:
mapper-locations: classpath:mapping/*.xml
type-aliases-package: com.sunyo.usercenter.heartbeat.model
pagehelper:
#auto-dialect: true
#auto-runtime-dialect: true
helper-dialect: mysql
reasonable: true
support-methods-arguments: true
params: count=countSql
#debug配置,debug或者为true的时候,logback才会记录和写入日志文件
trace: false
debug: true
logging:
file:
path: ./logs/
name: system.log
config: config/logback-dev.xml
#转移到logback配置文件中
#level:
#org.apache.tomcat: info
#com.tianbo.warehouse.dao: DEBUG
#org.springframework.security: trace
#日志配置,输出到文本,
#Java Web Token 时效时间,单位秒
jwt:
max-alive: 30000
message-bus:
url:
#账户登录地址
login-url: http://36.134.143.171:8083/api/zz-uaa/common/bus/login
#心跳地址
hearbit-url: http://36.134.143.171:8083/api/cloud-user-center-heartbeat/heartbeat
#报文发送地址
send-url: http://36.134.143.171:8083/api/kafka-server-producer/kafka/send
#报文接收地址
get-url: http://36.134.143.171:8083/api/kafka-server-consumer/kafka/receive
auth:
username: yangyucheng
password: 111111
#心跳间隔时间默认10秒,单位毫秒
heartbit-interval: 10000
consumer-group-id: HYYWGroup
kafka:
bootstrap-servers: 192.168.1.73:32771
max-poll-records: 60
consumer:
properties:
security:
protocol: PLAINTEXT://192.168.1.73:32771
info:
version: 1.0
description: "消息总线-消息转发服务。[转发大数据小组消息到总线上]"
feign:
hystrix:
enabled: false
client:
config:
default:
logger-level: FULL
httpclient:
connection-timeout: 2000