update 优化 !pr493 代码结构与问题修复

This commit is contained in:
疯狂的狮子Li
2024-03-14 17:28:10 +08:00
parent 7b8822f664
commit a458c7056d
5 changed files with 9 additions and 5 deletions

View File

@ -1,8 +1,8 @@
package org.dromara.common.job.config;
import com.aizuda.easy.retry.client.starter.EnableEasyRetry;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
/**
@ -11,7 +11,7 @@ import org.springframework.scheduling.annotation.EnableScheduling;
* @author dhb52
* @since 2024/3/12
*/
@Configuration
@AutoConfiguration
@ConditionalOnProperty(prefix = "easy-retry", name = "enabled", havingValue = "true")
@EnableScheduling
@EnableEasyRetry(group = "${easy-retry.group-name}")

View File

@ -1,8 +1,8 @@
package org.dromara.common.job.config;
import org.springframework.boot.autoconfigure.AutoConfiguration;
import org.springframework.boot.autoconfigure.condition.ConditionalOnBean;
import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import tech.powerjob.worker.PowerJobWorker;
@ -11,7 +11,7 @@ import tech.powerjob.worker.PowerJobWorker;
* @author yhan219
* @since 2023/6/2
*/
@Configuration
@AutoConfiguration
@ConditionalOnBean(PowerJobWorker.class)
@ConditionalOnProperty(prefix = "powerjob.worker", name = "enabled", havingValue = "true")
@EnableScheduling

View File

@ -0,0 +1,2 @@
org.dromara.common.job.config.PowerJobConfig
org.dromara.common.job.config.EasyRetryConfig