Blame view

src/main/resources/application.yml 3.07 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
  thymeleaf:
    mode: HTML
    encoding: utf-8
40
    # 禁用缓存
41
    cache: false
42
  #国际化资源文件路径
43
44
45
46
47
48
49
  messages:
    basename: i18n/messages
  jackson:
    time-zone: GMT+8
    date-format: yyyy-MM-dd HH:mm:ss
  profiles:
    active: druid
50
  # 文件上传
51
52
  servlet:
    multipart:
53
      # 单个文件大小
54
      max-file-size:  30MB
55
      # 设置总上传的文件大小
56
      max-request-size:  30MB
57
  # 服务模块
58
59
  devtools:
    restart:
60
      # 热部署开关
61
      enabled: true
mahuandong authored
62
63
64
65
66
67
68
69
70
71
  # 邮箱配置
  mail:
    # 邮箱服务器
    host: smtp.qq.com
    # 邮箱账号
    username: 752432958@qq.com
    # 邮箱密码
    password: owobzjvlgsxrbdfe
    # 编码类型
    default-encoding: utf-8
72
73
74
75

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

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