download:
https://gitee.com/xuxueli0323/xxl-job/tags
Choose an even-numbered version, for example: 2.2.0 version.
Initialize the database execution script
/xxl-job/doc/db/tables_xxl_job.sql
Modify the configuration file Enter the xxl-job-admin project, modify the port number in the configuration file (application.properties); database user name and password;
Compile and run xxl-job-admin
mvn spring-boot:run
Default password for xxl-job-admin
admin/123456
introduce:
mainly involves two concepts
Actuator
The object XxlJobSpringExecutor used by the executor to execute tasks, XxlJobSpringExecutor is defined in our own project, and its name is used to identify a project in xxl-job-admin.
Task
The job is where the logic is actually executed, and its operation is directed by the xxl-job-admin.
used in the project
Introduce dependencies
<dependency><groupId>com.xuxueli</groupId><artifactId>xxl-job-core</artifactId><version>2.2.0</version></dependency>
.............................................................................
Copy the content of the file, copy it to mysql and run it to generate a database
Change the port number and database name and password
Go back to the parent directory of src and enter the run command in cmd
Enter the page and complete the configuration