🚧 定时任务.

This commit is contained in:
lijiahangmax
2024-03-26 23:56:26 +08:00
parent 2ff090a974
commit eb75877ea6
7 changed files with 13 additions and 6 deletions

View File

@@ -22,6 +22,7 @@
<artifactId>orion-ops-framework-common</artifactId> <artifactId>orion-ops-framework-common</artifactId>
</dependency> </dependency>
<!-- web -->
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>

View File

@@ -26,6 +26,12 @@
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter</artifactId> <artifactId>spring-boot-starter</artifactId>
</dependency> </dependency>
<!-- quartz -->
<dependency>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-quartz</artifactId>
</dependency>
</dependencies> </dependencies>
</project> </project>

View File

@@ -10,8 +10,6 @@ import org.springframework.scheduling.concurrent.ThreadPoolTaskScheduler;
/** /**
* 调度器配置 * 调度器配置
* <p>
* TODO 后面业务扩展需要加上quartz的配置
* *
* @author Jiahang Li * @author Jiahang Li
* @version 1.0.0 * @version 1.0.0

View File

@@ -22,11 +22,13 @@
<artifactId>orion-ops-framework-common</artifactId> <artifactId>orion-ops-framework-common</artifactId>
</dependency> </dependency>
<!-- web -->
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-web</artifactId> <artifactId>spring-boot-starter-web</artifactId>
</dependency> </dependency>
<!-- jdbc -->
<dependency> <dependency>
<groupId>org.springframework.boot</groupId> <groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-jdbc</artifactId> <artifactId>spring-boot-starter-jdbc</artifactId>

View File

@@ -10,9 +10,7 @@ spring:
redis: redis:
host: 127.0.0.1 host: 127.0.0.1
port: 6379 port: 6379
database: 0
password: lijiahang password: lijiahang
timeout: 3000
mybatis-plus: mybatis-plus:
configuration: configuration:

View File

@@ -20,9 +20,7 @@ spring:
redis: redis:
host: ${REDIS_HOST:127.0.0.1} host: ${REDIS_HOST:127.0.0.1}
port: ${REDIS_PORT:6379} port: ${REDIS_PORT:6379}
database: 0
password: ${REDIS_PASSWORD:Data@123456} password: ${REDIS_PASSWORD:Data@123456}
timeout: 3000
springdoc: springdoc:
api-docs: api-docs:

View File

@@ -53,6 +53,10 @@ spring:
wall: wall:
config: config:
multi-statement-allow: true multi-statement-allow: true
redis:
database: 0
connect-timeout: 3000
timeout: 3000
cache: cache:
type: REDIS type: REDIS
redis: redis: