Blame view

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

mybatis-plus:
  mapper-locations: classpath:mybatis/**/*.xml
  type-aliases-package: com.huaheng.pc.**.**.domain
xqs authored
118
119
120
121
  global-config:
    db-config:
      logic-delete-value: 0 # 逻辑已删除值(默认为 1)
      logic-not-delete-value: 1 # 逻辑未删除值(默认为 0)
122
123
# PageHelper分页插件
124
125
126
127
128
129
130
131
132
pagehelper:
  helperDialect: mysql
  reasonable: true
  supportMethodsArguments: true
  params: count=countSql

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