提交 | 用户 | 时间
|
1ac2bc
|
1 |
package cn.stylefeng.guns.timer.config; |
懒 |
2 |
|
|
3 |
import cn.stylefeng.guns.timer.jobhandler.CommandJobHandler; |
|
4 |
import cn.stylefeng.guns.timer.jobhandler.DemoJobHandler; |
|
5 |
import cn.stylefeng.guns.timer.jobhandler.HttpJobHandler; |
|
6 |
import cn.stylefeng.guns.timer.jobhandler.ShardingJobHandler; |
|
7 |
import org.springframework.context.annotation.Bean; |
|
8 |
import org.springframework.context.annotation.Configuration; |
|
9 |
|
|
10 |
/** |
|
11 |
* xxl-job config |
|
12 |
* |
|
13 |
* @author xuxueli 2017-04-28 |
|
14 |
*/ |
|
15 |
@Configuration |
|
16 |
public class JobHandlerConfig { |
|
17 |
|
|
18 |
@Bean |
|
19 |
public CommandJobHandler commandJobHandler() { |
|
20 |
return new CommandJobHandler(); |
|
21 |
} |
|
22 |
|
|
23 |
@Bean |
|
24 |
public DemoJobHandler demoJobHandler() { |
|
25 |
return new DemoJobHandler(); |
|
26 |
} |
|
27 |
|
|
28 |
@Bean |
|
29 |
public HttpJobHandler httpJobHandler() { |
|
30 |
return new HttpJobHandler(); |
|
31 |
} |
|
32 |
|
|
33 |
@Bean |
|
34 |
public ShardingJobHandler shardingJobHandler() { |
|
35 |
return new ShardingJobHandler(); |
|
36 |
} |
|
37 |
|
|
38 |
} |