Commit cc78025f805b008d1bdc747a7a45de10e89b69f9

Authored by YunaiV
1 parent 6cd9b3bf

修改本地不开 Job,dev 开启 Job

yudao-admin-server/src/main/resources/application-dev.yaml
... ... @@ -66,6 +66,7 @@ spring:
66 66 # Quartz 配置项,对应 QuartzProperties 配置类
67 67 spring:
68 68 quartz:
  69 + auto-startup: true # 测试环境,需要开启 Job
69 70 scheduler-name: schedulerName # Scheduler 名字。默认为 schedulerName
70 71 job-store-type: jdbc # Job 存储器类型。默认为 memory 表示内存,可选 jdbc 使用数据库。
71 72 wait-for-jobs-to-complete-on-shutdown: true # 应用关闭时,是否等待定时任务执行完成。默认为 false ,建议设置为 true
... ...
yudao-admin-server/src/main/resources/application-local.yaml
... ... @@ -80,6 +80,7 @@ spring:
80 80 # Quartz 配置项,对应 QuartzProperties 配置类
81 81 spring:
82 82 quartz:
  83 + auto-startup: false # 本地开发环境,尽量不要开启 Job
83 84 scheduler-name: schedulerName # Scheduler 名字。默认为 schedulerName
84 85 job-store-type: jdbc # Job 存储器类型。默认为 memory 表示内存,可选 jdbc 使用数据库。
85 86 wait-for-jobs-to-complete-on-shutdown: true # 应用关闭时,是否等待定时任务执行完成。默认为 false ,建议设置为 true
... ...
yudao-user-server/src/main/resources/application-dev.yaml
... ... @@ -63,6 +63,11 @@ spring:
63 63  
64 64 --- #################### 定时任务相关配置 ####################
65 65  
  66 +# Quartz 配置项,对应 QuartzProperties 配置类
  67 +spring:
  68 + quartz:
  69 + auto-startup: false # 无需使用 Quartz,交给 yudao-admin-server 环境
  70 +
66 71 --- #################### 配置中心相关配置 ####################
67 72  
68 73 # Apollo 配置中心
... ...
yudao-user-server/src/main/resources/application-local.yaml
... ... @@ -63,6 +63,11 @@ spring:
63 63  
64 64 --- #################### 定时任务相关配置 ####################
65 65  
  66 +# Quartz 配置项,对应 QuartzProperties 配置类
  67 +spring:
  68 + quartz:
  69 + auto-startup: false # 无需使用 Quartz,交给 yudao-admin-server 环境
  70 +
66 71 --- #################### 配置中心相关配置 ####################
67 72  
68 73 # Apollo 配置中心
... ...