Spring Batch Quick Learning example (Spring batch samples)

Source: Internet
Author: User
Tags to domain
In the spring batch samples project, there are many projects involved. It's a quick primer.

Spring Batch provides a number of simple job instances that you can refer to when developing your custom batch application: Adhocloopjob: Demonstrates an infinite loop job that exposes elements through JMX; Beanwrappermappersamplejob: Demonstrates how to implement validation of file-based input data and map file fields to domain objects; Compositeitemwritersamplejob: A step can only contain a itemreader and itemwriter, a job that teaches you how to circumvent this limitation; Customerfilterjob: Demonstrates how to use a itemprocessor filter for invalid customer; Delegatingjob: Using Itemreaderadapter, Delegate the read behavior of the input data to a Pojo method; Footballjob: A football match statistic job, after loading two input files (one file is the athlete data, one file is the tournament data), produces a statistic information and outputs to the log file; Groovyjob: Demonstrates running a file compression and decompression script written by groovy; Headerfootersample: Demonstrates how to use callbacks, adding headers and footer at the time of output; Hibernatejob:spring Batch Reader and writer do not use Hibernate by default, and this job demonstrates how to integrate hibernate; Infiniteloopjob: an infinite loop job that automatically restarts after the job has stopped; Iosamplejob: Provides examples of many different IO methods, such as reading separator files, files with fixed-length fields, Xml, JDBC, ibatis integration; Jobsamplejob: Demonstrates how to perform another job from one job; Loopflowsample: Demonstrates how to programmatically control the execution process; Mailjob: Demonstrates how to use simplemailmessageitemwriter to send email;

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.