Src/main/java目录下
Application.xml
< xml version="1.0"encoding="UTF-8" >
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"xmlns:p="http://www.springframework.org/schema/p" xmlns:tx="http://www.springframework.org/schema/tx"xmlns:aop="http://www.springframework.org/schema/aop" xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd" default-autowire="byName">
Batch.xml
< xml version="1.0"encoding="UTF-8" >
xmlns:bean="http://www.springframework.org/schema/beans"xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:p="http://www.springframework.org/schema/p"xmlns:tx="http://www.springframework.org/schema/tx" xmlns:aop="http://www.springframework.org/schema/aop"xmlns:context="http://www.springframework.org/schema/context" xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-3.0.xsd http://www.springframework.org/schema/tx http://www.springframework.org/schema/tx/spring-tx-3.0.xsd http://www.springframework.org/schema/aop http://www.springframework.org/schema/aop/spring-aop-3.0.xsd http://www.springframework.org/schema/context http://www.springframework.org/schema/context/spring-context-2.5.xsd http://www.springframework.org/schema/batch http://www.springframework.org/schema/batch/spring-batch.xsd">
Run JobLaunch将逐个调用配置在job helloWorldJob中的step:step_hello和step_world,
Aug 12,2013 5:14:48 PM org.springframework.context.support.AbstractApplicationContextprepareRefresh
INFO:Refreshingorg.springframework.context.support.ClassPathXmlApplicationContext@89fbe3:startup date [Mon Aug 12 17:14:48 CST 2013]; root of context hierarchy
Aug 12,2013 5:14:48 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReaderloadBeanDefinitions
INFO:Loading XML bean definitions from class path resource [application.xml]
Aug 12, 20135:14:48 PM org.springframework.beans.factory.xml.XmlBeanDefinitionReaderloadBeanDefinitions
INFO:Loading XML bean definitions from class path resource [batch.xml]
Aug 12,2013 5:1