application.yml
2.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
spring:
profiles:
active: druid
---
#项目相关配置
huaheng:
name: huaheng
version: 4.0.0
copyrightYear: 2021
profile: /home/uploadPath
apkpath: /home/uploadPath/apk/
addressEnabled: false
#服务端口、项目contextPath
server:
tomcat:
uri-encoding: UTF-8
max-threads: 800
min-spare-threads: 30
port: 8888
servlet:
context-path: /wms
# 用户配置
user:
password:
maxRetryCount: 5
# Spring配置
spring:
mvc:
static-path-pattern: /**
resources:
static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/
cache:
period: 3600
http:
encoding:
charset: utf-8
enabled: true
force: true
# 模板引擎(生产环境开启缓存)
thymeleaf:
mode: HTML
encoding: utf-8
cache: true
#国际化资源文件路径
messages:
basename: i18n/messages
jackson:
time-zone: GMT+8
date-format: yyyy-MM-dd HH:mm:ss
profiles:
active: dev
property-naming-strategy: LOWER_CAMEL_CASE
# 文件上传
servlet:
multipart:
max-file-size: 100MB
max-request-size: 100MB
# 禁用devtools热部署(核心优化)
devtools:
restart:
enabled: false
additional-exclude: /**/*
# 邮箱配置
mail:
host: smtp.qq.com
username: 752432958@qq.com
password: owobzjvlgsxrbdfe
default-encoding: utf-8
# redis 配置(缩短超时,减少阻塞)
redis:
host: localhost
port: 6379
password:
timeout: 3s
lettuce:
pool:
min-idle: 0
max-idle: 8
max-active: 8
max-wait: 1s
shutdown-timeout: 100ms
client-type: lettuce
connect-timeout: 1s
mybatis-plus:
mapper-locations: classpath:mybatis/**/*.xml
type-aliases-package: com.huaheng.pc.**.**.domain
global-config:
db-config:
logic-delete-value: 0
logic-not-delete-value: 1
# PageHelper分页插件
pagehelper:
helperDialect: mysql
reasonable: true
supportMethodsArguments: true
params: count=countSql
# Shiro
shiro:
user:
loginUrl: /login
unauthorizedUrl: /unauth
indexUrl: /index
captchaEnabled: false
captchaType: math
cookie:
domain:
path: /
httpOnly: true
maxAge: -1
session:
expireTime: -1
dbSyncPeriod: 5
validationInterval: 30
# 防止XSS攻击
xss:
enabled: true
excludes: /system/notice/*
urlPatterns: /system/*,/monitor/*,/tool/*
#系统日志地址(适配Linux路径)
log:
path: /home/WMSlog