Jiarenxiang | 25a45b7 | 2025-03-13 16:09:13 +0800 | [diff] [blame] | 1 | # 项目相关配置 |
| 2 | ruoyi: |
| 3 | # 名称 |
meisiyu | c98fc52 | 2025-06-02 20:33:40 +0800 | [diff] [blame^] | 4 | name: ThunderHub |
Jiarenxiang | 25a45b7 | 2025-03-13 16:09:13 +0800 | [diff] [blame] | 5 | # 版本 |
meisiyu | c98fc52 | 2025-06-02 20:33:40 +0800 | [diff] [blame^] | 6 | version: 1.0.0 |
Jiarenxiang | 25a45b7 | 2025-03-13 16:09:13 +0800 | [diff] [blame] | 7 | # 版权年份 |
| 8 | copyrightYear: 2024 |
meisiyu | c98fc52 | 2025-06-02 20:33:40 +0800 | [diff] [blame^] | 9 | # 文件路径 示例( Windows配置D:/ruoyi/uploadPath,Linux配置 /home/ruoyi/uploadPath) |
| 10 | profile: ./upload |
| 11 | # 前端项目图片路径(相对于后端项目根目录) |
| 12 | frontendImagePath: ../ThunderHubWeb/public/images |
Jiarenxiang | 25a45b7 | 2025-03-13 16:09:13 +0800 | [diff] [blame] | 13 | # 获取ip地址开关 |
| 14 | addressEnabled: false |
meisiyu | c98fc52 | 2025-06-02 20:33:40 +0800 | [diff] [blame^] | 15 | # 验证码类型 math 数组计算 char 字符验证 |
Jiarenxiang | 25a45b7 | 2025-03-13 16:09:13 +0800 | [diff] [blame] | 16 | captchaType: math |
| 17 | |
| 18 | # 开发环境配置 |
| 19 | server: |
| 20 | # 服务器的HTTP端口,默认为8080 |
| 21 | port: 8080 |
| 22 | servlet: |
| 23 | # 应用的访问路径 |
| 24 | context-path: / |
| 25 | tomcat: |
| 26 | # tomcat的URI编码 |
| 27 | uri-encoding: UTF-8 |
| 28 | # 连接数满后的排队数,默认为100 |
| 29 | accept-count: 1000 |
| 30 | threads: |
| 31 | # tomcat最大线程数,默认为200 |
| 32 | max: 800 |
| 33 | # Tomcat启动初始化的线程数,默认值10 |
| 34 | min-spare: 100 |
| 35 | |
| 36 | # 日志配置 |
| 37 | logging: |
| 38 | level: |
| 39 | com.ruoyi: debug |
| 40 | org.springframework: warn |
| 41 | |
| 42 | # 用户配置 |
| 43 | user: |
| 44 | password: |
| 45 | # 密码最大错误次数 |
| 46 | maxRetryCount: 5 |
| 47 | # 密码锁定时间(默认10分钟) |
| 48 | lockTime: 10 |
| 49 | |
| 50 | # Spring配置 |
| 51 | spring: |
| 52 | # 资源信息 |
| 53 | messages: |
| 54 | # 国际化资源文件路径 |
| 55 | basename: i18n/messages |
| 56 | profiles: |
| 57 | active: druid |
meisiyu | c98fc52 | 2025-06-02 20:33:40 +0800 | [diff] [blame^] | 58 | # 静态资源映射 |
| 59 | mvc: |
| 60 | static-path-pattern: /static/** |
| 61 | web: |
| 62 | resources: |
| 63 | static-locations: classpath:/static/ |
Jiarenxiang | 25a45b7 | 2025-03-13 16:09:13 +0800 | [diff] [blame] | 64 | # 文件上传 |
| 65 | servlet: |
| 66 | multipart: |
| 67 | # 单个文件大小 |
| 68 | max-file-size: 10MB |
| 69 | # 设置总上传的文件大小 |
| 70 | max-request-size: 20MB |
| 71 | # 服务模块 |
| 72 | devtools: |
| 73 | restart: |
| 74 | # 热部署开关 |
| 75 | enabled: true |
| 76 | data: |
| 77 | # redis 配置 |
| 78 | redis: |
| 79 | # 地址 |
| 80 | host: localhost |
| 81 | # 端口,默认为6379 |
| 82 | port: 6379 |
| 83 | # 数据库索引 |
| 84 | database: 0 |
| 85 | # 密码 |
| 86 | password: |
| 87 | # 连接超时时间 |
| 88 | timeout: 10s |
| 89 | lettuce: |
| 90 | pool: |
| 91 | # 连接池中的最小空闲连接 |
| 92 | min-idle: 0 |
| 93 | # 连接池中的最大空闲连接 |
| 94 | max-idle: 8 |
| 95 | # 连接池的最大数据库连接数 |
| 96 | max-active: 8 |
| 97 | # #连接池最大阻塞等待时间(使用负值表示没有限制) |
| 98 | max-wait: -1ms |
| 99 | |
| 100 | # token配置 |
| 101 | token: |
| 102 | # 令牌自定义标识 |
| 103 | header: Authorization |
| 104 | # 令牌密钥 |
| 105 | secret: abcdefghijklmnopqrstuvwxyz |
| 106 | # 令牌有效期(默认30分钟) |
| 107 | expireTime: 30 |
| 108 | |
| 109 | # MyBatis配置 |
| 110 | mybatis: |
| 111 | # 搜索指定包别名 |
| 112 | typeAliasesPackage: com.ruoyi.**.domain |
| 113 | # 配置mapper的扫描,找到所有的mapper.xml映射文件 |
| 114 | mapperLocations: classpath*:mapper/**/*Mapper.xml |
| 115 | # 加载全局的配置文件 |
| 116 | configLocation: classpath:mybatis/mybatis-config.xml |
| 117 | |
| 118 | # MyBatis-plus配置 |
| 119 | mybatis-plus: |
| 120 | # 搜索指定包别名 |
| 121 | typeAliasesPackage: com.ruoyi.**.domain |
| 122 | # 配置mapper的扫描,找到所有的mapper.xml映射文件 |
| 123 | mapperLocations: classpath:mapper/*.xml |
| 124 | configLocation: classpath:mybatis/mybatis-config.xml |
| 125 | # 全局配置 |
| 126 | global-config: |
| 127 | # 主键类型 0:"数据库ID自增", 1:"用户输入ID",2:"全局唯一ID (数字类型唯一ID)", 3:"全局唯一ID UUID"; |
| 128 | id-type: 0 |
| 129 | # 字段策略 0:"忽略判断",1:"非 NULL 判断"),2:"非空判断" |
| 130 | field-strategy: 2 |
| 131 | # 驼峰下划线转换 |
| 132 | db-column-underline: true |
| 133 | # 刷新mapper 调试神器 |
| 134 | refresh-mapper: true |
| 135 | # 配置 |
| 136 | configuration: |
| 137 | # 驼峰式命名 |
| 138 | map-underscore-to-camel-case: true |
| 139 | # 全局映射器启用缓存 |
| 140 | cache-enabled: true |
| 141 | # 指定 MyBatis 所用日志的具体实现 |
| 142 | log-impl: org.slf4j; |
| 143 | # 配置默认的执行器 |
| 144 | default-executor-type: reuse |
| 145 | # 允许 JDBC 支持自动生成主键 |
| 146 | use-generated-keys: true |
| 147 | |
| 148 | |
| 149 | # PageHelper分页插件 |
| 150 | pagehelper: |
| 151 | helperDialect: mysql |
| 152 | supportMethodsArguments: true |
| 153 | params: count=countSql |
| 154 | |
| 155 | # Springdoc配置 |
| 156 | springdoc: |
| 157 | api-docs: |
| 158 | path: /v3/api-docs |
| 159 | swagger-ui: |
| 160 | enabled: true |
| 161 | path: /swagger-ui.html |
| 162 | tags-sorter: alpha |
| 163 | group-configs: |
| 164 | - group: 'default' |
| 165 | display-name: '测试模块' |
| 166 | paths-to-match: '/**' |
| 167 | packages-to-scan: com.ruoyi.web.controller.tool |
| 168 | |
| 169 | # 防止XSS攻击 |
| 170 | xss: |
| 171 | # 过滤开关 |
| 172 | enabled: true |
| 173 | # 排除链接(多个用逗号分隔) |
| 174 | excludes: /system/notice |
| 175 | # 匹配链接 |
| 176 | urlPatterns: /system/*,/monitor/*,/tool/* |
| 177 | |
| 178 | # 设置是否调试,调试情况可跳过接口认证 |
| 179 | debug: false |