中国算力平台算力登记系统2.0
yanzhaofeige
2024-09-30 6293d2b460bd17eee8b078f5a53ee4b2a0eea88e
commit | author | age
43dc29 1 # 项目相关配置
f21d30 2 cpzidc:
43dc29 3   # 名称
f21d30 4   name: CpzIdc
43dc29 5   # 版本
Y 6   version: 3.8.8
7   # 版权年份
8   copyrightYear: 2024
f21d30 9   # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /data/CpzIdc/uploadPath)
Y 10   profile: /data/cpzIdc/uploadPath
43dc29 11   # 获取ip地址开关
Y 12   addressEnabled: false
13   # 验证码类型 math 数字计算 char 字符验证
14   captchaType: math
15
16 # 开发环境配置
17 server:
18   # 服务器的HTTP端口,默认为8080
f21d30 19   port: 8560
43dc29 20   servlet:
Y 21     # 应用的访问路径
22     context-path: /
23   tomcat:
24     # tomcat的URI编码
25     uri-encoding: UTF-8
26     # 连接数满后的排队数,默认为100
27     accept-count: 1000
28     threads:
29       # tomcat最大线程数,默认为200
30       max: 800
31       # Tomcat启动初始化的线程数,默认值10
32       min-spare: 100
33
34 # 日志配置
35 logging:
36   level:
37     com.odcc.cpzidc: debug
38     org.springframework: warn
39
40 # 用户配置
41 user:
42   password:
43     # 密码最大错误次数
44     maxRetryCount: 5
45     # 密码锁定时间(默认10分钟)
46     lockTime: 10
47
48 # Spring配置
49 spring:
50   # 资源信息
51   messages:
52     # 国际化资源文件路径
53     basename: i18n/messages
54   profiles:
55     active: druid
56   # 文件上传
57   servlet:
58     multipart:
59       # 单个文件大小
f21d30 60       max-file-size: 20MB
43dc29 61       # 设置总上传的文件大小
f21d30 62       max-request-size: 50MB
43dc29 63   # 服务模块
Y 64   devtools:
65     restart:
66       # 热部署开关
67       enabled: true
6293d2 68
43dc29 69
Y 70 # token配置
71 token:
72   # 令牌自定义标识
73   header: Authorization
74   # 令牌密钥
75   secret: abcdefghijklmnopqrstuvwxyz
76   # 令牌有效期(默认30分钟)
77   expireTime: 30
78
79 # MyBatis配置
80 mybatis:
81   # 搜索指定包别名
82   typeAliasesPackage: com.odcc.cpzidc.**.domain
83   # 配置mapper的扫描,找到所有的mapper.xml映射文件
84   mapperLocations: classpath*:mapper/**/*Mapper.xml
85   # 加载全局的配置文件
86   configLocation: classpath:mybatis/mybatis-config.xml
87
88 # PageHelper分页插件
89 pagehelper:
90   helperDialect: mysql
91   supportMethodsArguments: true
92   params: count=countSql
93
94 # Swagger配置
95 swagger:
96   # 是否开启swagger
97   enabled: true
98   # 请求前缀
99   pathMapping: /dev-api
100
101 # 防止XSS攻击
102 xss:
103   # 过滤开关
104   enabled: true
105   # 排除链接(多个用逗号分隔)
106   excludes: /system/notice
107   # 匹配链接
108   urlPatterns: /system/*,/monitor/*,/tool/*