inleft
2022-02-16 0613f2f9107a082e3f5467dfde2438ab5ec83479
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
0613f2 30     log-impl: org.apache.ibatis.logging.stdout.StdOutImpl
I 31 #    log-impl: org.apache.ibatis.logging.nologging.NoLoggingImpl
9bcb19 32   global-config:
I 33     banner: false
34     db-config:
35       id-type: assign_id
36       table-underline: true
37     enable-sql-runner: true
38   configuration-properties:
39     prefix:
40     #如果数据库为postgresql,则需要配置为blobType: BINARY
41     blobType: BLOB
42     #如果数据库为oracle或mssql,则需要配置为boolValue: 1
43     boolValue: true
44
45 #libreoffice文档在线预览配置
46 # CentOS 下安装 libreoffice:
47 # 安装:yum -y install libreoffice
48 # Linux 中文字体乱码解决:
49 # 1、上传 C:\Windows\Fonts 下的字体到 /usr/share/fonts/windows 目录
50 # 2、执行命令: chmod 644 /usr/share/fonts/windows/* && fc-cache -fv
51 jodconverter:
52   local:
53     #暂时关闭预览,启动时会有点慢
54     enabled: false
55     #设置libreoffice主目录 linux地址如:/usr/lib64/libreoffice
56     office-home: C:\Program Files\LibreOffice
57     #开启多个libreoffice进程,每个端口对应一个进程
58     port-numbers: 8100
59     #libreoffice进程重启前的最大进程数
60     max-tasks-per-process: 100
61
62 #验证码相关配置 去除日志打印
63 logging:
64   level:
65     com.anji: off
66 #验证码相关配置
67 aj:
68   captcha:
69     cache-type: local #分布式部署需要 自己实现CaptchaCacheService 使用redis需要配置redis相关配置
70     type: default #验证码类型 clickword 为点选   blockPuzzle 为滑块验证码   default 两种都实例化
71     font-type: 宋体
72     req-frequency-limit-enable: true #接口请求次数一分钟限制是否开启 true|false
73     req-get-lock-limit: 2  # 验证失败2次,get接口锁定
74     req-get-lock-seconds: 10 # 验证失败后,锁定时间间隔,s
75     req-get-minute-limit: 30 # get接口一分钟内请求数限制
76     req-check-minute-limit: 60 # check接口一分钟内请求数限制
77     req-verify-minute-limit: 60 # verify接口一分钟内请求数限制