mirror of
https://github.com/dromara/RuoYi-Vue-Plus.git
synced 2025-09-24 07:19:46 +08:00
update 优化 !pr493 代码结构与问题修复
This commit is contained in:
@ -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}")
|
||||
|
@ -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
|
||||
|
@ -0,0 +1,2 @@
|
||||
org.dromara.common.job.config.PowerJobConfig
|
||||
org.dromara.common.job.config.EasyRetryConfig
|
Reference in New Issue
Block a user