liyong
2026-04-22 b9f83de5055d53df8fa549e767258acac7b631f1
feat(config): 更新开发环境配置和集成个推及Quartz定时任务

- 添加协同审批编号前缀配置项approvalNumberPrefix
- 集成个推Unipush推送服务配置(getui相关参数)
- 修改服务器端口从9101到9103
- 为Quartz添加DEBUG日志级别配置
- 修改Redis数据库索引从12到0并启用密码配置
- 新增Quartz定时任务数据库存储配置
- 清理配置文件中的多余空行
已修改1个文件
41 ■■■■■ 文件已修改
src/main/resources/application-hsxny.yml 41 ●●●●● 补丁 | 查看 | 原始文档 | blame | 历史
src/main/resources/application-hsxny.yml
@@ -13,11 +13,22 @@
  addressEnabled: false
  # 验证码类型 math 数字计算 char 字符验证
  captchaType: math
  # 协同审批编号前缀(配置文件后缀命名)
  approvalNumberPrefix: DEV
  # 个推 Unipush 配置
  getui:
    appId: PfjyAAE0FK64FaO1w2CMb1
    appKey: zTMb831OEL6J4GK1uE3Ob4
    masterSecret: K1GFtsv42v61tXGnF7SGE5
    domain: https://restapi.getui.cn/v2/
    # 离线推送使用的包名/组件名
    intentComponent: uni.app.UNI099A590/io.dcloud.PandoraEntry
# 开发环境配置
server:
  # 服务器的HTTP端口,默认为8080
  port: 9101
  port: 9103
  servlet:
    # 应用的访问路径
    context-path: /
@@ -35,6 +46,7 @@
# 日志配置
logging:
  level:
    org.quartz: DEBUG
    com.ruoyi: warn
    org.springframework: warn
@@ -139,7 +151,7 @@
    # 端口,默认为6379
    port: 6379
    # 数据库索引
    database: 12
    database: 0
    # 密码
#    password: root2022!
    password:
@@ -156,6 +168,31 @@
        max-active: 8
        # #连接池最大阻塞等待时间(使用负值表示没有限制)
        max-wait: -1ms
  # Quartz定时任务配置(新增部分)
  quartz:
    job-store-type: jdbc  # 使用数据库存储
    jdbc:
      initialize-schema: never  # 首次运行时自动创建表结构,成功后改为never
      schema: classpath:org/quartz/impl/jdbcjobstore/tables_mysql_innodb.sql  # MySQL表结构脚本
    properties:
      org:
        quartz:
          scheduler:
            instanceName: RuoYiScheduler
            instanceId: AUTO
          jobStore:
            class: org.quartz.impl.jdbcjobstore.JobStoreTX
            driverDelegateClass: org.quartz.impl.jdbcjobstore.StdJDBCDelegate  # MySQL适配
            tablePrefix: qrtz_  # 表名前缀,与脚本一致
            isClustered: false  # 单节点模式(集群需改为true)
            clusterCheckinInterval: 10000
            txIsolationLevelSerializable: true
          threadPool:
            class: org.quartz.simpl.SimpleThreadPool
            threadCount: 10  # 线程池大小
            threadPriority: 5
            makeThreadsDaemons: true
          updateCheck: false  # 关闭版本检查
# token配置
token: