当前位置:网站首页>xxl-job使用注意事项
xxl-job使用注意事项
2022-07-24 01:33:00 【慢积跬步】
1、传参:
任务参数是json字符串格式,使用String类型接受。
String param = XxlJobHelper.getJobParam();
PriceRequestVo reqVo = JSON.parseObject(param , PriceRequestVo.class);

注意“任务参数格式”,中间不能有空格,否则会报错:
//正确格式:
{"months":1,"ReqParamList":[{"Code":"aa"}]}
//错误格式:
{
"months":"",
"ReqParamList":[
{
"Code":"aa",
}
]
}
2、使用xxl执行任务时,机器地址可以从 执行器管理-Online机器地址 选择需要执行的环境,否则所有环境都执行。
说明:
xxl-job可以用来执行定时任务,还可以界面传参执行任务,也可以选择“执行一次”。
边栏推荐
猜你喜欢

141. Circular linked list

Interview question: what are the differences between ArrayList and LinkedList

After the interview with 20 or 30 companies, there is no offer that you can't get after the Android interview

Design of hospital wireless network system

Hcip day 12 notes

HCIP中的MGRE GRE OSPF过程

HCIP第十天笔记

The first day of little bear pie

選址與路徑規劃問題(Lingo,Matlab實現)

Draw a two coordinate diagram with MATLAB (the simplest in the whole network)
随机推荐
Simple Gan instance code
罗克韦尔AB PLC RSLogix5000中的位指令使用方法介绍
OSPF(第五天笔记)
IP地址、子网划分(A2)
Customer first | domestic Bi leader, smart software completes round C financing
Bat Code: batch file underline rename
Basic knowledge of mathematical vector
Hcip day 9 notes
面试了二三十家公司所总结的问题,Android面试吃完这一套没有拿不到的Offer......
OSPF(第四天笔记)
Exchange 2013 SSL证书安装文档
Introduction to the use of bit instruction in Rockwell AB PLC rslogix5000
为什么博途V17及以下的HMI面板不能与1500固件版本2.9或1200版本4.5 的CPU建立连接?
Database design
HCIP中OSPF详解
Hcip day 6 notes
HCIP第一天笔记
Arm architecture and programming 1 -- LED flashing (based on Baiwen arm architecture and programming tutorial video)
LiteSpeed Web服务器中安装SSL证书
Research on retinal vascular segmentation based on GAN using few samples