Blame view

src/main/resources/application.yml 5.49 KB
1
2
spring:
  profiles:
3
    active: druid
4
---
5
6
#项目相关配置
#名称
7
8
huaheng:
  name: huaheng
9
  #版本
10
  version: 4.0.0
11
  #版权年份
易文鹏 authored
12
  copyrightYear: 2024
13
  # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
周峰 authored
14
  profile: D:/Huaheng/uploadPath/
游杰 authored
15
  # apk路径
游杰 authored
16
  apkpath: D:/Huaheng/uploadPath/apk/
17
18
  # 文件路径
  filespath: D:/Huaheng/uploadPath/file/
19
  # 获取ip地址开关
20
21
  addressEnabled: false
xqs authored
22
#服务端口、项目contextPath
23
24
25
server:
  tomcat:
    uri-encoding: UTF-8
26
    # tomcat最大线程数,默认为200
27
    max-threads: 800
28
    # Tomcat启动初始化的线程数,默认值25
29
    min-spare-threads: 30
30
31
32
33
34
35
36
37
  undertow:
    # 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程
    io-threads: 4
    # 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载
    worker-threads: 20
    # 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理
    # 每块buffer的空间大小,越小的空间被利用越充分
    buffer-size: 1024
38
39
40
    # 是否分配的直接内存
    direct-buffers: true
游杰 authored
41
  port: 8888
xqs authored
42
  servlet:
游杰 authored
43
    context-path: /wms
44
45
46
47
48
49
50
51
52
53
  ssl:
    # 证书别名
    key-alias: wms
    # 证书位置
    key-store: classpath:keystore.p12
    # 证书密码
    key-store-password: wms!@#.
    key-store-type: PKCS12
    # https启用开关
    enabled: false
54
55
# 用户配置
56
57
user:
  password:
58
    # 密码错误{maxRetryCount}次锁定10分钟
59
60
    maxRetryCount: 5
61
# Spring配置
62
spring:
63
64
65
  mvc:
    static-path-pattern: /**
  resources:
66
    static-locations: classpath:/META-INF/resources/,classpath:/resources/,classpath:/static/,classpath:/public/,file:${huaheng.profile},file:${huaheng.filespath}
67
68
69
70
71
  http:
    encoding:
      charset: utf-8
      enabled: true
      force: true
72
  # 模板引擎
73
74
75
  thymeleaf:
    mode: HTML
    encoding: utf-8
76
    # 禁用缓存
77
    cache: false
78
  #国际化资源文件路径
79
80
81
82
83
84
  messages:
    basename: i18n/messages
  jackson:
    time-zone: GMT+8
    date-format: yyyy-MM-dd HH:mm:ss
  profiles:
huhai authored
85
    active: dev
mahuandong authored
86
    property-naming-strategy: LOWER_CAMEL_CASE
87
  # 文件上传
88
89
  servlet:
    multipart:
90
      # 单个文件大小
91
      max-file-size: 100MB
92
      # 设置总上传的文件大小
93
      max-request-size: 100MB
94
  # 服务模块
95
96
  devtools:
    restart:
97
      # 热部署开关
98
      enabled: true
mahuandong authored
99
100
101
102
103
104
105
106
107
108
  # 邮箱配置
  mail:
    # 邮箱服务器
    host: smtp.qq.com
    # 邮箱账号
    username: 752432958@qq.com
    # 邮箱密码
    password: owobzjvlgsxrbdfe
    # 编码类型
    default-encoding: utf-8
易文鹏 authored
109
110
111
112
113
114



# redis 配置
redis:
  database: 0
115
  #  host: 192.168.100.134
易文鹏 authored
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
  host: localhost
  lettuce:
    pool:
      max-active: 8   #最大连接数据库连接数,设 0 为没有限制
      max-idle: 8     #最大等待连接中的数量,设 0 为没有限制
      max-wait: -1ms  #最大建立连接等待时间。如果超过此时间将接到异常。设为-1表示无限制。
      min-idle: 0     #最小等待连接中的数量,设 0 为没有限制
      max-total: 50   #连接池最大连接数(使用负值表示没有限制)
      max-waitMillis: -1  #连接池最大阻塞等待时间(使用负值表示没有限制)
    shutdown-timeout: 100ms
  password:
  #password:
  port: 6379
  ssl: true
  timeout: 14400000      #4h 4*60*60*1000
131
132
133
134

mybatis-plus:
  mapper-locations: classpath:mybatis/**/*.xml
  type-aliases-package: com.huaheng.pc.**.**.domain
xqs authored
135
136
137
138
  global-config:
    db-config:
      logic-delete-value: 0 # 逻辑已删除值(默认为 1)
      logic-not-delete-value: 1 # 逻辑未删除值(默认为 0)
139
140
# PageHelper分页插件
141
142
143
144
145
146
147
148
149
pagehelper:
  helperDialect: mysql
  reasonable: true
  supportMethodsArguments: true
  params: count=countSql

# Shiro
shiro:
  user:
150
    # 登录地址
151
    loginUrl: /login
152
    # 权限认证失败地址
153
    unauthorizedUrl: /unauth
154
    # 首页地址
155
    indexUrl: /index
156
    # 验证码开关
157
    captchaEnabled: false
158
    # 验证码类型 math 数组计算 char 字符
159
160
    captchaType: math
  cookie:
161
    # 设置Cookie的域名 默认空,即当前访问的域名
162
    domain:
163
    # 设置cookie的有效访问路径
164
    path: /
165
    # 设置HttpOnly属性
166
    httpOnly: true
167
    # 设置Cookie的过期时间,天为单位
168
    maxAge: -1
169
  session:
易文鹏 authored
170
171
    #启用redisCache
    redisEnabled: true
172
    # Session超时时间(默认30分钟)
173
    expireTime: -1
174
    # 同步session到数据库的周期(默认1分钟)
175
    dbSyncPeriod: 1
176
    # 相隔多久检查一次session的有效性,默认就是10分钟
易文鹏 authored
177
    validationInterval: 1000000
178
179
# 防止XSS攻击
180
xss:
181
  # 过滤开关
182
  enabled: true
183
  # 排除链接(多个用逗号分隔)
184
  excludes: /system/notice/*
185
  # 匹配链接
186
187
  urlPatterns: /system/*,/monitor/*,/tool/*
188
189
  # 代码生成
  # 作者
190
191
gen:
  author: huaheng
192
  # 默认生成包路径 module 需改成自己的模块名称 如 system monitor tool
193
  packageName: com.huaheng.pc.task
194
  # 自动去除表前缀,默认是true
195
  autoRemovePre: false
196
  # 表前缀(类名不会包含表前缀)
197
  gen.tablePrefix: sys_
198
199
#系统日志地址
log:
200
  path: D:\home\WMSlog
易文鹏 authored
201
202
203
204
205
206
207

jeecg:
  jmreport:
    # 打印纸张配置 title描述 size宽高
    printPaper:
      - title: 托盘标签
        size:
208
209
          - 150
          - 100
易文鹏 authored
210
211
      - title: 库位标签
        size:
212
213
214
215
216
217
          - 150
          - 100
      - title: 库区标签
        size:
          - 150
          - 100