title: How to change the XML to Configuration Classes?
body: <p>I'm sorry, I little hate English.<br></p>
  
  <p>please help me. I having an Issue.<br>
  It's I want to change XML to Java Class  for @Configuration and @Bean use it.<br>
  How do I do ??<br></p>
  
  <p>The following is that I'd like to change.<br>
  I don't know 'module-context.xml' especially...<br>
  just I want know that.</p>
  
  <p><strong>launch-context.xml</strong></p>
  
  <pre><code>&lt;import resource="classpath:/META-INF/spring/module-context.xml" /&gt;
  
  &lt;bean id="jobOperator"
      class="org.springframework.batch.core.launch.support.SimpleJobOperator"
      p:jobLauncher-ref="jobLauncher" p:jobExplorer-ref="jobExplorer"
      p:jobRepository-ref="jobRepository" p:jobRegistry-ref="jobRegistry" /&gt;
  &lt;bean id="jobExplorer"
      class="org.springframework.batch.core.explore.support.JobExplorerFactoryBean"
      p:dataSource-ref="SpringDataSource" /&gt;
  &lt;bean id="jobRegistry"
      class="org.springframework.batch.core.configuration.support.MapJobRegistry" /&gt;
  &lt;bean
      class="org.springframework.batch.core.configuration.support.JobRegistryBeanPostProcessor"&gt;
      &lt;property name="jobRegistry" ref="jobRegistry" /&gt;
  &lt;/bean&gt;
  &lt;bean id="jobLauncher"
      class="org.springframework.batch.core.launch.support.SimpleJobLauncher"&gt;
      &lt;property name="jobRepository" ref="jobRepository" /&gt;
  &lt;/bean&gt;
  &lt;bean id="jobRepository"
      class="org.springframework.batch.core.repository.support.JobRepositoryFactoryBean"
      p:dataSource-ref="SpringDataSource" p:transactionManager-ref="springTransactionManager" /&gt;
  
  &lt;bean id="placeholderProperties"
      class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer"&gt;
      &lt;property name="location" value="classpath:batch.properties" /&gt;
      &lt;property name="systemPropertiesModeName" value="SYSTEM_PROPERTIES_MODE_OVERRIDE" /&gt;
      &lt;property name="ignoreUnresolvablePlaceholders" value="true" /&gt;
      &lt;property name="order" value="1" /&gt;
  &lt;/bean&gt;
  
  &lt;bean id="SpringDataSource" class="org.apache.commons.dbcp.BasicDataSource"&gt;
      &lt;property name="driverClassName" value="${batch.jdbc.driver}" /&gt;
      &lt;property name="url" value="${batch.jdbc.url}" /&gt;
      &lt;property name="username" value="${spring.batch.jdbc.user}" /&gt;
      &lt;property name="password" value="${spring.batch.jdbc.password}" /&gt;
  &lt;/bean&gt;
  &lt;bean id="springTransactionManager"
      class="org.springframework.jdbc.datasource.DataSourceTransactionManager"
      lazy-init="true"&gt;
      &lt;property name="dataSource" ref="SpringDataSource" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p><strong>module-context.xml</strong></p>
  
  <pre><code>&lt;job id="job1" xmlns="http://www.springframework.org/schema/batch"
      incrementer="jobParametersIncrementer"&gt;
      &lt;step id="simple-step" parent="simpleStep"&gt;
          &lt;tasklet&gt;
              &lt;chunk reader="exampleReader" writer="exampleWriter" /&gt;
          &lt;/tasklet&gt;
      &lt;/step&gt;
  &lt;/job&gt;
  &lt;bean id="exampleReader"
      class="jp.co.app.cm.nochunk.ExampleItemReader" /&gt;
  &lt;bean id="exampleWriter"
      class="jp.co.app.cm.nochunk.ExampleItemWriter" /&gt;
  &lt;bean id="simpleStep"
      class="org.springframework.batch.core.step.item.SimpleStepFactoryBean"
      abstract="true"&gt;
      &lt;property name="transactionManager" ref="springTransactionManager" /&gt;
      &lt;property name="jobRepository" ref="jobRepository" /&gt;
      &lt;property name="startLimit" value="100" /&gt;
  &lt;/bean&gt;
  </code></pre>
  
  <p>plase tell me someone?</p>