inleft
2022-08-04 eaf26c265f8882b2e100428d942ac377330cc114
commit | author | age
9bcb19 1 #服务配置
I 2 server:
3   port: 82
4   max-http-header-size: 10240
5
6 #spring相关配置
7 spring:
8   profiles:
9     active: @spring.active@
10   servlet:
11     multipart:
12       max-request-size: 100MB
13       max-file-size: 100MB
14   jackson:
15     time-zone: GMT+8
16     date-format: yyyy-MM-dd HH:mm:ss.SSS
17     locale: zh_CN
18     serialization:
19       # 格式化输出
20       indent_output: false
21
22 #mybaits相关配置
23 mybatis-plus:
24   mapper-locations: classpath*:vip/xiaonuo/**/mapping/*.xml, classpath:/META-INF/modeler-mybatis-mappings/*.xml
25   configuration:
26     map-underscore-to-camel-case: true
27     cache-enabled: true
28     lazy-loading-enabled: true
29     multiple-result-sets-enabled: true
4d51af 30     log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
9bcb19 31   global-config:
I 32     banner: false
33     db-config:
34       id-type: assign_id
35       table-underline: true
36     enable-sql-runner: true
37   configuration-properties:
38     prefix:
39     #如果数据库为postgresql,则需要配置为blobType: BINARY
40     blobType: BLOB
41     #如果数据库为oracle或mssql,则需要配置为boolValue: 1
42     boolValue: true
43
44 #libreoffice文档在线预览配置
45 # CentOS 下安装 libreoffice:
46 # 安装:yum -y install libreoffice
47 # Linux 中文字体乱码解决:
48 # 1、上传 C:\Windows\Fonts 下的字体到 /usr/share/fonts/windows 目录
49 # 2、执行命令: chmod 644 /usr/share/fonts/windows/* && fc-cache -fv
50 jodconverter:
51   local:
52     #暂时关闭预览,启动时会有点慢
53     enabled: false
54     #设置libreoffice主目录 linux地址如:/usr/lib64/libreoffice
55     office-home: C:\Program Files\LibreOffice
56     #开启多个libreoffice进程,每个端口对应一个进程
57     port-numbers: 8100
58     #libreoffice进程重启前的最大进程数
59     max-tasks-per-process: 100
60
61 #验证码相关配置 去除日志打印
62 logging:
63   level:
64     com.anji: off
65 #验证码相关配置
66 aj:
67   captcha:
68     cache-type: local #分布式部署需要 自己实现CaptchaCacheService 使用redis需要配置redis相关配置
69     type: default #验证码类型 clickword 为点选   blockPuzzle 为滑块验证码   default 两种都实例化
70     font-type: 宋体
71     req-frequency-limit-enable: true #接口请求次数一分钟限制是否开启 true|false
72     req-get-lock-limit: 2  # 验证失败2次,get接口锁定
73     req-get-lock-seconds: 10 # 验证失败后,锁定时间间隔,s
74     req-get-minute-limit: 30 # get接口一分钟内请求数限制
75     req-check-minute-limit: 60 # check接口一分钟内请求数限制
76     req-verify-minute-limit: 60 # verify接口一分钟内请求数限制