Skip to content

IntoTw/xxl-job-cloud

Repository files navigation

xxl-job spring cloud version

use eureka instead of original http registry way.

How to use

1. mvn install the project new xxl-job-core jar for 'xxl-job-core 2.2.0.Cloud' version.
cd xxl-job-core;
mvn install;
2. add new version jar to your executor projects.
<dependency>
    <groupId>com.xuxueli</groupId>
    <artifactId>xxl-job-core</artifactId>
    <version>2.2.0.Cloud</version>
</dependency>
3. add package scan to 'com.xxl.job.core.cloud' to enable configure.
@EnableFeignClients
@EnableEurekaClient
//like this
@SpringBootApplication(exclude = JacksonAutoConfiguration.class,
        scanBasePackages = {"com.xxl.job.core.cloud"})
@EnableHystrix
public class RdcjUserApplication {
    public static void main(String[] args) {
        SpringApplication.run(RdcjUserApplication.class);
    }
}
4. and run xxl-job-admin from this project(do not forgot edit your eureka config).
5. use it like original.

About

xxl-job for spring-cloud version

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published