Blame view

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

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

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

minidao :
  base-package: org.jeecg.modules.jmreport.desreport.dao*
198
  db-type: mysql