title: My Project is JPA Based. No XML configuration. Getting NoSuchBeanDefinitionException: No qualifying bean of type JobLauncher to autowire
body: <p>My project uses JPA annotation rather than spring XML to configure and annotate beans. I have NO  web.xml, applicationConfigutaion.xml nothing xml based configuration in my entire project. How do I resolve this issue. </p>
  
  <p>I'm getting this</p>
  
  <pre><code>Exception in thread "main" org.springframework.beans.factory.NoSuchBeanDefinitionException: No bean named 'jobLauncher' available
      at org.springframework.beans.factory.support.DefaultListableBeanFactory.getBeanDefinition(DefaultListableBeanFactory.java:687)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getMergedLocalBeanDefinition(AbstractBeanFactory.java:1207)
      at org.springframework.beans.factory.support.AbstractBeanFactory.doGetBean(AbstractBeanFactory.java:284)
      at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:197)
      at org.springframework.context.support.AbstractApplicationContext.getBean(AbstractApplicationContext.java:1081)
      at com.process.batch.job.MyBatchJobApplication.main(MyBatchJobApplication.java:54)
  </code></pre>