Spring Batch 2.2.0.M1 是 Spring Batch 项目的**里程碑版本(Milestone 1)
Spring Batch 2.2.0.M1 是 Spring Batch 项目的里程碑版本(Milestone 1),发布于 2013 年左右(具体为 2013 年 3 月),属于 Spring Batch 2.2.x 系列的首个预发布版本。该版本主要聚焦于增强批处理的可扩展性、简化配置(尤其是 Java 配置支持)、改进重启与跳过机制,并为后续正式版(2.2.0.RELEASE)奠定基础。
关键特性包括:
- ✅ 初步支持基于 Java 的批处理配置(
@EnableBatchProcessing尚未引入,该注解在 3.0+ 才出现,但 2.2.0.M1 已开始强化JobBuilderFactory/StepBuilderFactory的编程式构建); - ✅ 改进
JobRepository的数据库兼容性(如对 Oracle、DB2 的事务隔离优化); - ✅ 增强
ItemReader/ItemWriter的线程安全与状态管理; - ✅ 修复多个 2.1.x 中的重启失败、元数据表锁竞争等问题;
- ⚠️ 注意:此为Milestone 版本,非生产就绪版本,不建议用于生产环境;官方推荐升级至稳定版(如 2.2.7.RELEASE 或更高版本如 4.x/5.x)。
<!-- Maven 依赖示例(仅作历史参考,不推荐使用) --><dependency><groupId>org.springframework.batch</groupId><artifactId>spring-batch-core</artifactId><version>2.2.0.M1</version></dependency>Spring Batch 2.2.0.M1 released
SpringSource would like to announce the release of Spring Batch 2.2.0.M1!
This milestone release contains about 50/50 bug fixes and new features. This new release includes:
Updates to the archetype. It is now useful (pipes a file to a database by default) and provides packaging/execute scripts out of the box. Added the ability to provide your own Serializer implementation for use with the job repository. Added a new AmqpItemReader and AmqpItemWriter. Added @Configuration support to allow for java based configuration of jobs and stepsYou can read about all of the new features and bug fixes in the change log. Enjoy!
Download | Documentation | Javadoc API | Change Log | JIRA | Release Notes
