XXL-JOB task scheduling platform installation tutorial (nanny level tutorial)

First clone the project from GitHub.

GitHub address: https://gitee.com/xuxueli0323/xxl-job.git

 After downloading, open it through IDEA, and compile Maven and the project structure is as follows

Run this SQL file in the database to create the basic table. You can get the tables on the left

have to

 Now open the configuration file application.properties under the xxl-job-admin module for configuration.

The main configuration is to change the database address to your own, and don’t forget to change the account password.

We can run this program after we are done.

Visit this url: http://localhost:8080/xxl-job-admin 

Account: admin

Password: 123456

 Then we can see our main interface:

 After logging in, you will see the main interface:

At this point we can call a simple timed task to test whether the following works:

  There are many methods under this class, let's leave them alone. Before calling, let's take a look at the configuration in the springboot configuration file. We will also configure it in our own projects in the future. Pay attention to the two parameters I circled.

 Then we go to the xxljob page to configure:

First configure the executor (project):

 Then configure specific tasks (methods):

Note: At this point we need to start the springboot project in the project first.

Then we can test this method:

Then this pop-up window will pop up, let's just click save.

 Finally, it was executed successfully:

  

Guess you like

Origin blog.csdn.net/qq_64680177/article/details/131967661