当前位置:网站首页>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可以用来执行定时任务,还可以界面传参执行任务,也可以选择“执行一次”。
边栏推荐
- Second and third order trade expressions of linear algebra
- MD5 encryption and decryption website test, is MD5 encryption still safe?
- win11系统之win11亮点
- HCIA的复习
- 使用C语言和libcyaml库解析yaml配置文件
- Design of hospital wireless network system
- MGRE GRE OSPF process in hcip
- NLP introduction + practice: Chapter 1: deep learning and neural network
- Copying readable paths is not easy
- Bat Code: batch file underline rename
猜你喜欢

How safe is Volvo XC90? 5 seats and 7 seats are available

Repeat one sentence Trojan horse

Interview question: what are the differences between ArrayList and LinkedList

What is the Gantt chart function of Zen

Jenkins multitâche construction simultanée

Hcip third day notes

Code reading methods and best practices

RIP---路由信息协议

Arm architecture and programming 7 -- exceptions and interrupts (based on Baiwen arm architecture and programming tutorial video)

BAT代码:批量文件下划线重命名
随机推荐
Technology enabled new insurance: the digital transformation of China Property Insurance
Summary of HCIA knowledge points
【云原生之kubernetes】kubernetes集群下的Deployment高级资源对象管理
Detailed explanation of OSPF in hcip
Just started to use, ask some questions and tutorials or share posts
SCM learning notes 7 -- systick timer (based on Baiwen STM32F103 series tutorials)
MD5 encryption and decryption website test, is MD5 encryption still safe?
小熊派简介和环境搭建
Database design
HCIP第九天笔记
RIP(第二天笔记)
Research on retinal vascular segmentation based on GAN using few samples
HCIP第十天笔记
Vessel Segmentation in Retinal Image Based on Retina-GAN
HCIP第八天笔记
Vantui, axiso, FAQs and usage:
机房建设资料
HCIP实验
Arm architecture and programming 6 -- Relocation (based on Baiwen arm architecture and programming tutorial video)
OSPF (fifth day notes)