| | |
| | | copyrightYear: 2021 |
| | | # 实例演示开关 |
| | | demoEnabled: true |
| | | # 文件路径,使用jvm系统变量,兼容windows和linux; |
| | | profile: ${user.dir}/ruoyi/uploadPath |
| | | # 获取ip地址开关 |
| | | addressEnabled: false |
| | | addressEnabled: true |
| | | |
| | | captcha: |
| | | # 页面 <参数设置> 可开启关闭 验证码校验 |
| | | # 验证码类型 math 数组计算 char 字符验证 |
| | | captchaType: math |
| | | type: MATH |
| | | # line 线段干扰 circle 圆圈干扰 shear 扭曲干扰 |
| | | captchaCategory: circle |
| | | category: CIRCLE |
| | | # 数字验证码位数 |
| | | captchaNumberLength: 1 |
| | | numberLength: 1 |
| | | # 字符验证码长度 |
| | | captchaCharLength: 4 |
| | | charLength: 4 |
| | | |
| | | # 开发环境配置 |
| | | server: |
| | |
| | | # 以下的配置会影响buffer,这些buffer会用于服务器连接的IO操作,有点类似netty的池化内存管理 |
| | | # 每块buffer的空间大小,越小的空间被利用越充分 |
| | | buffer-size: 512 |
| | | # 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程 |
| | | io-threads: 8 |
| | | # 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载 |
| | | worker-threads: 256 |
| | | # 是否分配的直接内存 |
| | | direct-buffers: true |
| | | threads: |
| | | # 设置IO线程数, 它主要执行非阻塞的任务,它们会负责多个连接, 默认设置每个CPU核心一个线程 |
| | | io: 8 |
| | | # 阻塞任务线程池, 当执行类似servlet请求阻塞操作, undertow会从这个线程池中取得线程,它的值设置取决于系统的负载 |
| | | worker: 256 |
| | | # # tomcat 配置 |
| | | # tomcat: |
| | | # # tomcat的URI编码 |
| | |
| | | org.springframework: warn |
| | | config: classpath:logback.xml |
| | | |
| | | # tlog 全局访问性能拦截 |
| | | tlog: |
| | | enable-invoke-time-print: true |
| | | |
| | | # Spring配置 |
| | | spring: |
| | | application: |
| | | name: ${ruoyi.name} |
| | | # 资源信息 |
| | | messages: |
| | | # 国际化资源文件路径 |
| | | basename: i18n/messages |
| | | profiles: |
| | | profiles: |
| | | active: @profiles.active@ |
| | | # 文件上传 |
| | | servlet: |
| | | multipart: |
| | | # 单个文件大小 |
| | | max-file-size: 10MB |
| | | # 设置总上传的文件大小 |
| | | max-request-size: 20MB |
| | | multipart: |
| | | # 单个文件大小 |
| | | max-file-size: 10MB |
| | | # 设置总上传的文件大小 |
| | | max-request-size: 20MB |
| | | # 服务模块 |
| | | devtools: |
| | | restart: |
| | |
| | | thymeleaf: |
| | | # 将系统模板放置到最前面 否则会与 springboot-admin 页面冲突 |
| | | template-resolver-order: 1 |
| | | application: |
| | | name: ruoyi-vue-plus |
| | | boot: |
| | | admin: |
| | | # Spring Boot Admin Client 客户端的相关配置 |
| | | client: |
| | | # 设置 Spring Boot Admin Server 地址 |
| | | url: http://localhost:${server.port}${spring.boot.admin.context-path} |
| | | instance: |
| | | prefer-ip: true # 注册实例时,优先使用 IP |
| | | # username: ruoyi |
| | | # password: 123456 |
| | | # Spring Boot Admin Server 服务端的相关配置 |
| | | context-path: /admin # 配置 Spring |
| | | |
| | | # Actuator 监控端点的配置项 |
| | | management: |
| | | endpoints: |
| | | web: |
| | | # Actuator 提供的 API 接口的根目录。默认为 /actuator |
| | | base-path: /actuator |
| | | exposure: |
| | | # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。 |
| | | include: '*' |
| | | endpoint: |
| | | logfile: |
| | | external-file: ./logs/sys-console.log |
| | | jackson: |
| | | # 日期格式化 |
| | | date-format: yyyy-MM-dd HH:mm:ss |
| | | serialization: |
| | | # 格式化输出 |
| | | indent_output: false |
| | | # 忽略无法转换的对象 |
| | | fail_on_empty_beans: false |
| | | deserialization: |
| | | # 允许对象忽略json中不存在的属性 |
| | | fail_on_unknown_properties: false |
| | | |
| | | # token配置 |
| | | token: |
| | | # 令牌自定义标识 |
| | | header: Authorization |
| | | # 令牌密钥 |
| | | secret: abcdefghijklmnopqrstuvwxyz |
| | | # 令牌有效期(默认30分钟) |
| | | expireTime: 30 |
| | | |
| | | # MyBatis配置 |
| | | # 令牌自定义标识 |
| | | header: Authorization |
| | | # 令牌密钥 |
| | | secret: abcdefghijklmnopqrstuvwxyz |
| | | # 令牌有效期(默认30分钟) |
| | | expireTime: 30 |
| | | |
| | | # security配置 |
| | | security: |
| | | # 登出路径 |
| | | logout-url: /logout |
| | | # 匿名路径 |
| | | anonymous: |
| | | - /login |
| | | - /register |
| | | - /captchaImage |
| | | # swagger 文档配置 |
| | | - /doc.html |
| | | - /swagger-resources/** |
| | | - /webjars/** |
| | | - /*/api-docs |
| | | # druid 监控配置 |
| | | - /druid/** |
| | | # actuator 监控配置 |
| | | - /actuator |
| | | - /actuator/** |
| | | # 用户放行 |
| | | permit-all: |
| | | |
| | | # 重复提交 |
| | | repeat-submit: |
| | | # 全局间隔时间(毫秒) |
| | | interval: 5000 |
| | | |
| | | # MyBatisPlus配置 |
| | | # https://baomidou.com/config/ |
| | | mybatis-plus: |
| | | # 不支持多包, 如有需要可在注解配置 或 提升扫包等级 |
| | | # 例如 com.**.**.mapper |
| | | mapperPackage: com.ruoyi.**.mapper |
| | | # 对应的 XML 文件位置 |
| | | mapperLocations: classpath*:mapper/**/*Mapper.xml |
| | |
| | | # REUSE:该执行器类型会复用预处理语句(PreparedStatement) |
| | | # BATCH:该执行器类型会批量执行所有的更新语句 |
| | | executorType: SIMPLE |
| | | # 指定外部化 MyBatis Properties 配置,通过该配置可以抽离配置,实现不同环境的配置部署 |
| | | configurationProperties: null |
| | | configuration: |
| | | # 自动驼峰命名规则(camel case)映射 |
| | | # 如果您的数据库命名符合规则无需使用 @TableField 注解指定数据库字段名 |
| | |
| | | # STATEMENT 关闭一级缓存 |
| | | localCacheScope: SESSION |
| | | # 开启Mybatis二级缓存,默认为 true |
| | | cacheEnabled: true |
| | | cacheEnabled: false |
| | | # 更详细的日志输出 会有性能损耗 org.apache.ibatis.logging.stdout.StdOutImpl |
| | | # 关闭日志记录 (可单纯使用 p6spy 分析) org.apache.ibatis.logging.nologging.NoLoggingImpl |
| | | # 默认日志输出 org.apache.ibatis.logging.slf4j.Slf4jImpl |
| | | logImpl: org.apache.ibatis.logging.nologging.NoLoggingImpl |
| | | global-config: |
| | | # 是否打印 Logo banner |
| | | banner: true |
| | |
| | | # NOT_EMPTY 非空判断(只对字符串类型字段,其他类型字段依然为非NULL判断) |
| | | # DEFAULT 默认的,一般只用于注解里 |
| | | # NEVER 不加入 SQL |
| | | insertStrategy: NOT_EMPTY |
| | | insertStrategy: NOT_NULL |
| | | # 字段验证策略之 update,在 update 的时候的字段验证策略 |
| | | updateStrategy: NOT_EMPTY |
| | | updateStrategy: NOT_NULL |
| | | # 字段验证策略之 select,在 select 的时候的字段验证策略既 wrapper 根据内部 entity 生成的 where 条件 |
| | | selectStrategy: NOT_EMPTY |
| | | |
| | | # PageHelper分页插件 |
| | | pagehelper: |
| | | helperDialect: mysql |
| | | reasonable: true |
| | | supportMethodsArguments: true |
| | | params: count=countSql |
| | | where-strategy: NOT_NULL |
| | | |
| | | # Swagger配置 |
| | | swagger: |
| | |
| | | # 请求前缀 |
| | | pathMapping: /dev-api |
| | | # 标题 |
| | | title: '标题:RuoYi-Vue-Plus后台管理系统_接口文档' |
| | | title: '标题:${ruoyi.name}后台管理系统_接口文档' |
| | | # 描述 |
| | | description: '描述:用于管理集团旗下公司的人员信息,具体包括XXX,XXX模块...' |
| | | # 版本 |
| | | version: '版本号: ${ruoyi-vue-plus.version}' |
| | | # 作者信息 |
| | | contact: |
| | | name: Lion Li |
| | | email: crazylionli@163.com |
| | | url: https://gitee.com/JavaLionLi/RuoYi-Vue-Plus |
| | | groups: |
| | | - name: 代码生成模块 |
| | | basePackage: com.ruoyi.generator |
| | | - name: 演示案例 |
| | | basePackage: com.ruoyi.demo |
| | | - name: 系统模块 |
| | | basePackage: com.ruoyi.web |
| | | |
| | | # 防止XSS攻击 |
| | | xss: |
| | | xss: |
| | | # 过滤开关 |
| | | enabled: true |
| | | # 排除链接(多个用逗号分隔) |
| | | excludes: /system/notice/* |
| | | excludes: /system/notice |
| | | # 匹配链接 |
| | | urlPatterns: /system/*,/monitor/*,/tool/* |
| | | |
| | | threadPoolConfig: |
| | | # 全局线程池相关配置 |
| | | thread-pool: |
| | | # 是否开启线程池 |
| | | enabled: false |
| | | # 核心线程池大小 |
| | |
| | | # 线程池维护线程所允许的空闲时间 |
| | | keepAliveSeconds: 300 |
| | | # 线程池对拒绝任务(无线程可用)的处理策略 |
| | | # CallerRunsPolicy 等待 |
| | | # DiscardOldestPolicy 放弃最旧的 |
| | | # DiscardPolicy 丢弃 |
| | | # AbortPolicy 中止 |
| | | rejectedExecutionHandler: CallerRunsPolicy |
| | | # CALLER_RUNS_POLICY 调用方执行 |
| | | # DISCARD_OLDEST_POLICY 放弃最旧的 |
| | | # DISCARD_POLICY 丢弃 |
| | | # ABORT_POLICY 中止 |
| | | rejectedExecutionHandler: CALLER_RUNS_POLICY |
| | | |
| | | # feign 相关配置 |
| | | feign: |
| | | # 不支持多包, 如有需要可在注解配置 或 提升扫包等级 |
| | | # 例如 com.**.**.feign |
| | | package: com.ruoyi.**.feign |
| | | # 开启压缩 |
| | | compression: |
| | |
| | | enabled: true |
| | | okhttp: |
| | | enabled: true |
| | | hystrix: |
| | | enabled: true |
| | | circuitbreaker: |
| | | enabled: true |
| | | |
| | | --- # redisson 缓存配置 |
| | | redisson: |
| | | cacheGroup: |
| | | # 用例: @Cacheable(cacheNames="groupId", key="#XXX") 方可使用缓存组配置 |
| | | - groupId: redissonCacheMap |
| | | # 组过期时间(脚本监控) |
| | | ttl: 60000 |
| | | # 组最大空闲时间(脚本监控) |
| | | maxIdleTime: 60000 |
| | | # 组最大长度 |
| | | maxSize: 0 |
| | | - groupId: testCache |
| | | ttl: 1000 |
| | | maxIdleTime: 500 |
| | | |
| | | --- # 分布式锁 lock4j 全局配置 |
| | | lock4j: |
| | | # 获取分布式锁超时时间,默认为 3000 毫秒 |
| | | acquire-timeout: 3000 |
| | | # 分布式锁的超时时间,默认为 30 毫秒 |
| | | expire: 30000 |
| | | |
| | | --- # Actuator 监控端点的配置项 |
| | | management: |
| | | endpoints: |
| | | web: |
| | | # Actuator 提供的 API 接口的根目录。默认为 /actuator |
| | | base-path: /actuator |
| | | exposure: |
| | | # 需要开放的端点。默认值只打开 health 和 info 两个端点。通过设置 * ,可以开放所有端点。 |
| | | # 生产环境不建议放开所有 根据项目需求放开即可 |
| | | include: @endpoints.include@ |
| | | endpoint: |
| | | logfile: |
| | | external-file: ./logs/sys-console.log |
| | | |
| | | --- # 定时任务配置 |
| | | spring: |
| | | quartz: |
| | | scheduler-name: RuoyiScheduler |
| | | startup-delay: 1s |
| | | overwrite-existing-jobs: true |
| | | auto-startup: true |
| | | job-store-type: jdbc |
| | | properties: |
| | | org: |
| | | quartz: |
| | | # Scheduler 相关配置 |
| | | scheduler: |
| | | instanceName: RuoyiScheduler |
| | | instanceId: AUTO |
| | | # 线程池相关配置 |
| | | threadPool: |
| | | class: org.quartz.simpl.SimpleThreadPool |
| | | threadCount: 20 |
| | | threadPriority: 5 |
| | | # JobStore 集群配置 |
| | | jobStore: |
| | | class: org.quartz.impl.jdbcjobstore.JobStoreTX |
| | | isClustered: true |
| | | clusterCheckinInterval: 15000 |
| | | txIsolationLevelSerializable: true |
| | | misfireThreshold: 60000 |
| | | tablePrefix: QRTZ_ |
| | | # sqlserver 启用 |
| | | # selectWithLockSQL: SELECT * FROM {0}LOCKS UPDLOCK WHERE LOCK_NAME = ? |