Blame view

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

mybatis-plus:
  mapper-locations: classpath:mybatis/**/*.xml
  type-aliases-package: com.huaheng.pc.**.**.domain
80
# PageHelper分页插件
81
82
83
84
85
86
87
88
89
pagehelper:
  helperDialect: mysql
  reasonable: true
  supportMethodsArguments: true
  params: count=countSql

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