Blame view

src/main/resources/application.yml 3.15 KB
1
2
3
4
spring:
  profiles:
    active: dev
---
5
6
#项目相关配置
#名称
7
8
huaheng:
  name: huaheng
9
  #版本
10
  version: 4.0.0
11
  #版权年份
12
  copyrightYear: 2018
13
  # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath)
14
  profile: D:/ruoyi/uploadPath
15
  # 获取ip地址开关
16
17
  addressEnabled: false
18
#测试服务端口、测试项目contextPath
19
20
21
server:
  tomcat:
    uri-encoding: UTF-8
22
    # tomcat最大线程数,默认为200
23
    max-threads: 800
24
    # Tomcat启动初始化的线程数,默认值25
25
26
27
    min-spare-threads: 30
28
# 用户配置
29
30
user:
  password:
31
    # 密码错误{maxRetryCount}次锁定10分钟
32
33
    maxRetryCount: 5
34
# Spring配置
35
spring:
36
37
38
39
40
  http:
    encoding:
      charset: utf-8
      enabled: true
      force: true
41
  # 模板引擎
42
43
44
  thymeleaf:
    mode: HTML
    encoding: utf-8
45
    # 禁用缓存
46
    cache: false
47
  #国际化资源文件路径
48
49
50
51
52
53
54
  messages:
    basename: i18n/messages
  jackson:
    time-zone: GMT+8
    date-format: yyyy-MM-dd HH:mm:ss
  profiles:
    active: druid
55
  # 文件上传
56
57
  servlet:
    multipart:
58
      # 单个文件大小
59
      max-file-size:  30MB
60
      # 设置总上传的文件大小
61
      max-request-size:  30MB
62
  # 服务模块
63
64
  devtools:
    restart:
65
      # 热部署开关
66
      enabled: true
mahuandong authored
67
68
69
70
71
72
73
74
75
76
  # 邮箱配置
  mail:
    # 邮箱服务器
    host: smtp.qq.com
    # 邮箱账号
    username: 752432958@qq.com
    # 邮箱密码
    password: owobzjvlgsxrbdfe
    # 编码类型
    default-encoding: utf-8
77
78
79
80

mybatis-plus:
  mapper-locations: classpath:mybatis/**/*.xml
  type-aliases-package: com.huaheng.pc.**.**.domain
xqs authored
81
82
83
84
  global-config:
    db-config:
      logic-delete-value: 0 # 逻辑已删除值(默认为 1)
      logic-not-delete-value: 1 # 逻辑未删除值(默认为 0)
85
86
# PageHelper分页插件
87
88
89
90
91
92
93
94
95
pagehelper:
  helperDialect: mysql
  reasonable: true
  supportMethodsArguments: true
  params: count=countSql

# Shiro
shiro:
  user:
96
    # 登录地址
97
    loginUrl: /login
98
    # 权限认证失败地址
99
    unauthorizedUrl: /unauth
100
    # 首页地址
101
    indexUrl: /index
102
    # 验证码开关
103
    captchaEnabled: false
104
    # 验证码类型 math 数组计算 char 字符
105
106
    captchaType: math
  cookie:
107
    # 设置Cookie的域名 默认空,即当前访问的域名
108
    domain:
109
    # 设置cookie的有效访问路径
110
    path: /
111
    # 设置HttpOnly属性
112
    httpOnly: true
113
    # 设置Cookie的过期时间,天为单位
114
115
    maxAge: 30
  session:
116
    # Session超时时间(默认30分钟)
117
    expireTime: 30
118
    # 同步session到数据库的周期(默认1分钟)
119
    dbSyncPeriod: 1
120
    # 相隔多久检查一次session的有效性,默认就是10分钟
121
122
    validationInterval: 10
123
# 防止XSS攻击
124
xss:
125
  # 过滤开关
126
  enabled: true
127
  # 排除链接(多个用逗号分隔)
128
  excludes: /system/notice/*
129
  # 匹配链接
130
131
  urlPatterns: /system/*,/monitor/*,/tool/*
132
133
    # 代码生成
    # 作者
134
135
gen:
  author: huaheng
136
  # 默认生成包路径 module 需改成自己的模块名称 如 system monitor tool
137
  packageName: com.huaheng.pc.task
138
  # 自动去除表前缀,默认是true
139
  autoRemovePre: false
140
  # 表前缀(类名不会包含表前缀)
mahuandong authored
141
  gen.tablePrefix: sys_