🔨 定时执行.

This commit is contained in:
lijiahang
2024-04-10 14:03:09 +08:00
parent 0934703509
commit 3f1d56a8c2
12 changed files with 100 additions and 11 deletions

View File

@@ -31,6 +31,10 @@ public interface Const extends com.orion.lang.constant.Const, FieldConst, CnCons
Integer DEFAULT_VERSION = 1;
Long SYSTEM_USER_ID = 0L;
String SYSTEM_USERNAME = "system";
String ERROR_LOG = "error.log";
}

View File

@@ -45,6 +45,8 @@ public interface FieldConst {
String TOKEN = "token";
String SEQ = "seq";
String PATH = "path";
String ADDRESS = "address";

View File

@@ -1,6 +1,6 @@
package com.orion.ops.framework.banner.configuration;
import com.orion.ops.framework.banner.core.BannerApplicationRunner;
import com.orion.ops.framework.banner.core.runner.BannerApplicationRunner;
import com.orion.ops.framework.common.constant.AutoConfigureOrderConst;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.AutoConfigureOrder;

View File

@@ -1,4 +1,4 @@
package com.orion.ops.framework.banner.core;
package com.orion.ops.framework.banner.core.runner;
import com.orion.lang.utils.Threads;
import com.orion.lang.utils.ansi.AnsiAppender;

View File

@@ -47,7 +47,7 @@ public class OrionQuartzAutoConfiguration {
* @param schedulerFactoryBean 调度器工厂
* @return 调度器
*/
@Bean(initMethod = "start")
@Bean
public Scheduler scheduler(SchedulerFactoryBean schedulerFactoryBean) {
// 获取 scheduler
Scheduler scheduler = schedulerFactoryBean.getScheduler();