Build XXL-JOB
1. Dispatch center
First download XXL-JOB
I use version 2.3.1: https://github.com/xuxueli/xxl-job/releases/tag/2.3.1
Unzip xxl-job-2.3.1.zip
Use IDEA to open the decompressed directory
xxl-job-admin: dispatch center
xxl-job-core: public dependencies
xxl-job-executor-samples: Executor Samples (select the appropriate version of the executor and can be used directly)
:xxl-job-executor-sample-springboot: Springboot version, manage the executor through Springboot, this method is recommended;
:xxl-job-executor-sample-frameless: frameless version;
doc: documentation, including database scripts
The xxl_job_2.3.1 database has been created in the MySQL of the distributed virtual machine.
As shown below:
2. Windows use:
1. Don’t choose the wrong startup class when starting the local method.
2. Visit: http://localhost:8080/xxl-job-admin
3. Default account password: admin/123456
4. Modify the database connection in the admin module and start the module to achieve jar package deployment.
5. Successful login: