文件名从 ruoyi-modules/ruoyi-job/src/main/java/com/ruoyi/job/config/XxlJobConfig.java 修改 |
| | |
| | | package com.ruoyi.job.config; |
| | | package com.ruoyi.common.job.config; |
| | | |
| | | import com.ruoyi.job.config.properties.XxlJobProperties; |
| | | import com.ruoyi.common.job.config.properties.XxlJobProperties; |
| | | import com.xxl.job.core.executor.impl.XxlJobSpringExecutor; |
| | | import lombok.AllArgsConstructor; |
| | | import lombok.extern.slf4j.Slf4j; |
| | | import org.springframework.boot.autoconfigure.AutoConfiguration; |
| | | import org.springframework.boot.autoconfigure.condition.ConditionalOnProperty; |
| | | import org.springframework.boot.context.properties.EnableConfigurationProperties; |
| | | import org.springframework.context.annotation.Bean; |
| | | import org.springframework.context.annotation.Configuration; |
| | | |
| | | /** |
| | | * xxl-job config |
| | |
| | | * @author Lion Li |
| | | */ |
| | | @Slf4j |
| | | @Configuration |
| | | @AutoConfiguration |
| | | @EnableConfigurationProperties(XxlJobProperties.class) |
| | | @AllArgsConstructor |
| | | @ConditionalOnProperty(prefix = "xxl.job", name = "enabled", havingValue = "true") |
| | | public class XxlJobConfig { |
| | | |