佳佳的博客
  • 首页
  • 博客
  • 标签
  • 关于我

Spring Batch 作业监听器( Job Listener )

[TOC] 每个作业都有生命周期。Spring Batch 允许在生命周期的不同阶段通过提供的钩子( *Hook* )来添加额外的逻辑。 `JobExecutionList

Posted by 佳佳 on 2022-11-30 Spring Batch

Spring Batch 执行上下文( Execution Context )

**批处理过程在本质上是有状态的。** `JobExecution` 表示的是 Job 的一次尝试运行,作业的状态在 `ExecutionContext` (执行上下文)中维护。

Posted by 佳佳 on 2022-11-28 Spring Batch

Spring Batch JobParameters

在 Spring Batch 中,一个 *JobInstance* 只能成功运行一次,它根据**作业名**和**识别性参数**的哈希值来标记任务的唯一性。 启动时命令后面带上参数

Posted by 佳佳 on 2022-11-27 Spring Batch

Spring Batch + MySQL

Spring Batch 需要存储数据以记录 Job 运行的参数、步骤等信息,这里以 *MySQL* 为例(需要添加 *mysql-connector-j* 依赖)。 完整的 *

Posted by 佳佳 on 2022-11-24 MySQL Spring Batch

Spring Batch 之 Hello World

通过 [Spring Initializr](https://start.spring.io/) 创建 Spring Batch 项目,添加如下依赖: - *Spring Bat

Posted by 佳佳 on 2022-11-23 Spring Batch


刘佳佳
软件工程师
江苏 - 苏州
SeniorTech
目录
热门
  • MyBatis-Plus 在 QueryWrapper 中使用 SUM 聚合函数
  • 微信小程序接口调用 600001 错误修复
  • Kettle 设置和使用变量
  • Circular placeholder reference
  • 《混沌工程:Netflix 系统稳定性之道》
  • 稀土掘金
  • 02电气 - 苏州大学

苏ICP备16003387号 © 2016 - 2023 刘佳佳. All Rights Reserved.

2670915