| | |
| | | # 版本 |
| | | version: ${ruoyi-vue-plus.version} |
| | | # 版权年份 |
| | | copyrightYear: 2021 |
| | | copyrightYear: 2022 |
| | | # 实例演示开关 |
| | | demoEnabled: true |
| | | # 获取ip地址开关 |
| | | addressEnabled: true |
| | | # 缓存懒加载 |
| | | cacheLazy: false |
| | | |
| | | captcha: |
| | | # 页面 <参数设置> 可开启关闭 验证码校验 |
| | |
| | | org.springframework: warn |
| | | config: classpath:logback.xml |
| | | |
| | | # tlog 全局访问性能拦截 |
| | | tlog: |
| | | enable-invoke-time-print: true |
| | | |
| | | # Spring配置 |
| | | spring: |
| | | application: |
| | |
| | | thymeleaf: |
| | | # 将系统模板放置到最前面 否则会与 springboot-admin 页面冲突 |
| | | template-resolver-order: 1 |
| | | mvc: |
| | | pathmatch: |
| | | # 适配 boot 2.6 路由与 springfox 兼容 |
| | | matching-strategy: ANT_PATH_MATCHER |
| | | jackson: |
| | | # 日期格式化 |
| | | date-format: yyyy-MM-dd HH:mm:ss |
| | |
| | | sa-token: |
| | | # token名称 (同时也是cookie名称) |
| | | token-name: Authorization |
| | | # token有效期,单位s 默认30天, -1代表永不过期 |
| | | timeout: 2592000 |
| | | # token临时有效期 (指定时间内无操作就视为token过期) 单位: 秒 |
| | | # token有效期 设为一天 (必定过期) 单位: 秒 |
| | | timeout: 86400 |
| | | # token临时有效期 (指定时间无操作就过期) 单位: 秒 |
| | | activity-timeout: 1800 |
| | | # 是否允许同一账号并发登录 (为true时允许一起登录, 为false时新登录挤掉旧登录) |
| | | is-concurrent: true |
| | |
| | | # token前缀 |
| | | token-prefix: "Bearer" |
| | | # token风格 |
| | | token-style: random-128 |
| | | token-style: uuid |
| | | # jwt秘钥 |
| | | jwt-secret-key: abcdefghijklmnopqrstuvwxyz |
| | | # 是否输出操作日志 |
| | | is-log: true |
| | | |
| | |
| | | updateStrategy: NOT_NULL |
| | | # 字段验证策略之 select,在 select 的时候的字段验证策略既 wrapper 根据内部 entity 生成的 where 条件 |
| | | where-strategy: NOT_NULL |
| | | # 对 mysql 的字段做格式化 防止出现系统关键字 |
| | | column-format: "`%s`" |
| | | |
| | | # Swagger配置 |
| | | swagger: |
| | |
| | | basePackage: com.ruoyi.web |
| | | - name: 3.代码生成模块 |
| | | basePackage: com.ruoyi.generator |
| | | |
| | | knife4j: |
| | | # 是否开启Knife4j增强模式 |
| | | enable: true |
| | | # 是否开启生产环境保护策略 |
| | | production: @knife4j.production@ |
| | | basic: |
| | | enable: true |
| | | username: ruoyi |
| | | password: 123456 |
| | | # 前端Ui的个性化配置属性 |
| | | setting: |
| | | # 默认语言 |
| | | language: zh-CN |
| | | # 是否显示Footer |
| | | enableFooter: false |
| | | # 是否开启动态参数调试功能 |
| | | enableDynamicParameter: true |
| | | # 是否在每个Debug调试栏后显示刷新变量按钮 |
| | | enableReloadCacheParameter: true |
| | | |
| | | # 防止XSS攻击 |
| | | xss: |
| | |
| | | # DISCARD_POLICY 丢弃 |
| | | # ABORT_POLICY 中止 |
| | | rejectedExecutionHandler: CALLER_RUNS_POLICY |
| | | |
| | | # feign 相关配置 |
| | | feign: |
| | | # 不支持多包, 如有需要可在注解配置 或 提升扫包等级 |
| | | # 例如 com.**.**.feign |
| | | package: com.ruoyi.**.feign |
| | | # 开启压缩 |
| | | compression: |
| | | request: |
| | | enabled: true |
| | | response: |
| | | enabled: true |
| | | okhttp: |
| | | enabled: true |
| | | circuitbreaker: |
| | | enabled: true |
| | | |
| | | --- # redisson 缓存配置 |
| | | redisson: |
| | |
| | | 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 = ? |