How to configure using Java Config instead of xml

Reference link:

http://blog.jobbole.com/109857/

The configuration file of SpringBatch is usually the configuration method of xml. We found the following problems

1. The number of xml files expands rapidly, the configuration block is long and complex, and the readability is poor

2. The xml file lacks syntax checking, and some low-level errors can only be found at runtime, for example, the corresponding step is not configured, or the step name is wrong

Configuration using pure Java classes is more flexible and type-safe. The streaming syntax used when building a job or this step is more concise and easier to understand than xml

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325083623&siteId=291194637