-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathapplication.yml
More file actions
207 lines (195 loc) · 6.49 KB
/
application.yml
File metadata and controls
207 lines (195 loc) · 6.49 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
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
# Tomcat
server:
tomcat:
uri-encoding: UTF-8
port: 12345
# springboot2.3优雅停机,默认 IMMEDIATE kill -2 慢慢停 3.4 默认 graceful
shutdown: graceful
#开启压缩 提高响应速度 减少带宽压力
compression:
enabled: true
mime-types: text/html,text/xml,text/plain,text/css,application/javascript,application/json,image/svg+xml
min-response-size: 1024
servlet:
session:
# cookie 安全
cookie:
secure: true
same-site: none
name: pomupdate
http-only: true
encoding:
charset: UTF-8
#错误处理
error:
include-stacktrace: never
include-exception: false
include-message: never
include-binding-errors: never
undertow:
threads:
io: 32
worker: 256
buffer-size: 1024
spring:
application:
name: pom-update
lifecycle:
timeout-per-shutdown-phase: 20s #缓冲器即最大等待时间
jackson:
date-format: yyyy-MM-dd HH:mm:ss
time-zone: GMT+8
servlet:
multipart:
max-file-size: 10MB
max-request-size: 10MB
enabled: true
output:
ansi:
enabled: NEVER
jpa:
hibernate:
naming:
physical-strategy: org.hibernate.boot.model.naming.CamelCaseToUnderscoresNamingStrategy
implicit-strategy: org.hibernate.boot.model.naming.ImplicitNamingStrategyLegacyJpaImpl
database-platform: org.hibernate.dialect.MySQLDialect
mail:
test-connection: true
shoulder:
web:
restResponse:
skipWarpPathPatterns: /h2-console
ext:
dictionary:
enable: true
storage: ENUM
log:
type: json
http:
log:
type: json
application:
errorCodePrefix: '0x000b'
mail:
#smtp服务主机 qq邮箱则为smtp.qq.com
host: ${EMAIL_PROVIDER_HOST:smtp.qq.com}
port: ${EMAIL_PROVIDER_PORT:25}
#服务协议
protocol: ${EMAIL_PROVIDER_protocol:smtp}
# 编码集
default-encoding: UTF-8 # Utf-8
sender-name: ${EMAIL_SENDER_ADDR}
#发送邮件的账户
username: ${EMAIL_SENDER_ADDR}
#授权码
password: ${EMAIL_TOKEN}
properties:
mail:
smtp:
auth: true
starttls:
enable: true
required: true
timeout: 10000
logging:
level:
org.springframework: warn
org.hibernate: info
org.redisson: info
io.lettuce: info
io.netty: info
org.apache.http: warn
pomupdate:
ext-info-list:
- id: org.springframework.boot:spring-boot-starter-parent
change-log-url: https://github.com/spring-projects/spring-boot/releases
opensource-url: https://github.com/spring-projects/spring-boot
- id: org.springframework.cloud:spring-cloud-dependencies
change-log-url: https://docs.spring.io/spring-cloud/docs/current/reference/html
opensource-url: https://spring.io/projects/spring-cloud#overview
- id: org.redisson:redisson
change-log-url: https://github.com/redisson/redisson/blob/master/CHANGELOG.md
opensource-url: https://github.com/redisson/redisson
- id: org.projectlombok:lombok
change-log-url: https://github.com/projectlombok/lombok/releases
opensource-url: https://github.com/projectlombok/lombok
- id: cn.hutool:hutool-all
change-log-url: https://gitee.com/dromara/hutool/blob/v5-master/CHANGELOG.md
opensource-url: https://gitee.com/dromara/hutool
- id: com.alibaba:transmittable-thread-local
change-log-url: https://github.com/alibaba/transmittable-thread-local/releases
opensource-url: https://github.com/alibaba/transmittable-thread-local
- id: com.baomidou:mybatis-plus-boot-starter
change-log-url: https://github.com/baomidou/mybatis-plus/blob/3.0/CHANGELOG.md
opensource-url: https://github.com/baomidou/mybatis-plus
- id: org.apache.tika:tika-core
change-log-url: https://github.com/apache/tika/blob/main/CHANGES.txt
opensource-url: https://github.com/apache/tika
- id: com.h2database:h2
change-log-url: https://github.com/h2database/h2database/releases
opensource-url: https://github.com/h2database/h2database
- id: commons-codec:commons-codec
change-log-url: https://github.com/apache/commons-codec/tags
opensource-url: https://github.com/apache/commons-codec
- id: mysql:mysql-connector-j
change-log-url: https://dev.mysql.com/doc/connector-j/{VERSION}/en/connector-j-whats-new.html
opensource-url: https://dev.mysql.com/doc/connector-j/en/
- id: mysql:mysql-connector-java
change-log-url: https://dev.mysql.com/doc/connector-j/{VERSION}/en/connector-j-whats-new.html
opensource-url: https://dev.mysql.com/doc/connector-j/en/
# just for test file
localPath: 'F:/codes/java/projects/pom-update/pom.xml'
---
spring:
profile:
active: mysql
h2:
console:
enabled: true
settings:
web-allow-others: true
datasource:
type: com.alibaba.druid.pool.DruidDataSource
url: 'jdbc:mysql://${MYSQL_ADDR}/db_pom_update?characterEncoding=UTF-8&useSSL=false&autoReconnect=true&failOverReadOnly=false&serverTimezone=Asia/Shanghai&rewriteBatchStatements=true&allowPublicKeyRetrieval=true'
username: ${DB_USER}
password: ${DB_PWD}
driver-class-name: com.mysql.cj.jdbc.Driver
druid:
driver-class-name: com.mysql.cj.jdbc.Driver
url: 'jdbc:mysql://${MYSQL_ADDR}/db_pom_update?characterEncoding=UTF-8&useSSL=false&autoReconnect=true&failOverReadOnly=false&serverTimezone=Asia/Shanghai&rewriteBatchStatements=true&allowPublicKeyRetrieval=true'
username: ${DB_USER}
password: ${DB_PWD}
initial-size: 10
max-active: 100
min-idle: 10
max-wait: 60000
pool-prepared-statements: true
max-pool-prepared-statement-per-connection-size: 20
time-between-eviction-runs-millis: 60000
min-evictable-idle-time-millis: 300000
#Oracle需要打开注释
#validation-query: SELECT 1 FROM DUAL
test-while-idle: true
validation-query: 'SELECT 1'
test-on-borrow: false
test-on-return: false
# durid web 依赖 javax
web-stat-filter:
enabled: false
stat-view-servlet:
enabled: false
url-pattern: /druid/*
# 开发没必要开后台
#login-username: admin
#login-password: admin
filter:
stat:
# 开发可以打开,但有一定性能损耗
log-slow-sql: true
slow-sql-millis: 5000
merge-sql: false
wall:
config:
multi-statement-allow: true
jpa:
show-sql: true #开发时打开sql显示