EasyRetry Server 扩展模块

This commit is contained in:
dhb52
2024-03-13 23:09:45 +08:00
parent fb337f57b8
commit df5cbaaea8
24 changed files with 1858 additions and 1 deletions

View File

@ -38,6 +38,20 @@
<artifactId>powerjob-official-processors</artifactId>
</dependency>
<!-- EasyRetry client -->
<dependency>
<groupId>com.aizuda</groupId>
<artifactId>easy-retry-client-starter</artifactId>
</dependency>
<dependency>
<groupId>com.aizuda</groupId>
<artifactId>easy-retry-client-core</artifactId>
</dependency>
<dependency>
<groupId>com.aizuda</groupId>
<artifactId>easy-retry-client-job-core</artifactId>
</dependency>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>

View File

@ -0,0 +1,19 @@
package org.dromara.common.job.config;
import com.aizuda.easy.retry.client.starter.EnableEasyRetry;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
/**
* 启动定时任务
*
* @author dhb52
* @since 2024/3/12
*/
@Configuration
@ConditionalOnProperty(prefix = "easy-retry", name = "enabled", havingValue = "true")
@EnableScheduling
@EnableEasyRetry(group = "${easy-retry.group-name}")
public class EasyRetryConfig {
}