86133 | aaa3f5d | 2025-04-20 21:33:29 +0800 | [diff] [blame] | 1 | # 项目相关配置 |
| 2 | ruoyi: |
| 3 | # 名称 |
| 4 | name: RuoYi |
| 5 | # 版本 |
| 6 | version: 3.8.8 |
| 7 | # 版权年份 |
| 8 | copyrightYear: 2024 |
| 9 | # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath) |
| 10 | profile: D:/ruoyi/uploadPath |
| 11 | # 获取ip地址开关 |
86133 | 40e8848 | 2025-04-24 21:47:38 +0800 | [diff] [blame^] | 12 | addressEnabled: true |
86133 | aaa3f5d | 2025-04-20 21:33:29 +0800 | [diff] [blame] | 13 | # 验证码类型 math 数字计算 char 字符验证 |
| 14 | captchaType: math |
| 15 | |
| 16 | # 开发环境配置 |
| 17 | server: |
| 18 | # 服务器的HTTP端口,默认为8080 |
| 19 | port: 8080 |
| 20 | servlet: |
| 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.ruoyi: 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 | # 单个文件大小 |
| 60 | max-file-size: 10MB |
| 61 | # 设置总上传的文件大小 |
| 62 | max-request-size: 20MB |
| 63 | # 服务模块 |
| 64 | devtools: |
| 65 | restart: |
| 66 | # 热部署开关 |
| 67 | enabled: true |
| 68 | data: |
| 69 | # redis 配置 |
| 70 | redis: |
| 71 | # 地址 |
| 72 | host: localhost |
| 73 | # 端口,默认为6379 |
| 74 | port: 6379 |
| 75 | # 数据库索引 |
| 76 | database: 0 |
| 77 | # 密码 |
| 78 | password: |
| 79 | # 连接超时时间 |
| 80 | timeout: 10s |
| 81 | lettuce: |
| 82 | pool: |
| 83 | # 连接池中的最小空闲连接 |
| 84 | min-idle: 0 |
| 85 | # 连接池中的最大空闲连接 |
| 86 | max-idle: 8 |
| 87 | # 连接池的最大数据库连接数 |
| 88 | max-active: 8 |
| 89 | # #连接池最大阻塞等待时间(使用负值表示没有限制) |
| 90 | max-wait: -1ms |
| 91 | |
| 92 | # token配置 |
| 93 | token: |
| 94 | # 令牌自定义标识 |
| 95 | header: Authorization |
| 96 | # 令牌密钥 |
| 97 | secret: abcdefghijklmnopqrstuvwxyz |
| 98 | # 令牌有效期(默认30分钟) |
| 99 | expireTime: 30 |
| 100 | |
| 101 | # MyBatis配置 |
| 102 | mybatis: |
| 103 | # 搜索指定包别名 |
| 104 | typeAliasesPackage: com.ruoyi.**.domain |
| 105 | # 配置mapper的扫描,找到所有的mapper.xml映射文件 |
| 106 | mapperLocations: classpath*:mapper/**/*Mapper.xml |
| 107 | # 加载全局的配置文件 |
| 108 | configLocation: classpath:mybatis/mybatis-config.xml |
| 109 | |
| 110 | # PageHelper分页插件 |
| 111 | pagehelper: |
| 112 | helperDialect: mysql |
| 113 | supportMethodsArguments: true |
| 114 | params: count=countSql |
| 115 | |
| 116 | # Springdoc配置 |
| 117 | springdoc: |
| 118 | api-docs: |
| 119 | path: /v3/api-docs |
| 120 | swagger-ui: |
| 121 | enabled: true |
| 122 | path: /swagger-ui.html |
| 123 | tags-sorter: alpha |
| 124 | group-configs: |
| 125 | - group: 'default' |
| 126 | display-name: '测试模块' |
| 127 | paths-to-match: '/**' |
| 128 | packages-to-scan: com.ruoyi.web.controller.tool |
| 129 | |
| 130 | # 防止XSS攻击 |
| 131 | xss: |
| 132 | # 过滤开关 |
| 133 | enabled: true |
| 134 | # 排除链接(多个用逗号分隔) |
| 135 | excludes: /system/notice |
| 136 | # 匹配链接 |
| 137 | urlPatterns: /system/*,/monitor/*,/tool/* |