Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    primarykey
    data
    text
    <p>Within Spring Batch Admin, there are 2 Spring ApplicationContexts that are being loaded:</p> <ul> <li>servlet-config.xml</li> <li>webapp-config.xml</li> </ul> <p>servlet-config.xml has these imports:</p> <pre><code>&lt;import resource="classpath*:/META-INF/spring/batch/servlet/resources/*.xml" /&gt; &lt;import resource="classpath*:/META-INF/spring/batch/servlet/manager/*.xml" /&gt; &lt;import resource="classpath*:/META-INF/spring/batch/servlet/override/*.xml" /&gt; </code></pre> <p>webapp-config.xml has these imports:</p> <pre><code>&lt;import resource="classpath*:/META-INF/spring/batch/bootstrap/**/*.xml" /&gt; &lt;import resource="classpath*:/META-INF/spring/batch/override/**/*.xml" /&gt; </code></pre> <p>servlet-config.xml configurers the servlet, webapp-config.xml configures (the backend part of the) the application. The problem is that the dataSource bean is part of/defined in the second config, not the first. Hence, when you add the dataSource bean to an override for the servlet config(/META-INF/spring/batch/servlet/override/*.xml), as you are doing, you add a new bean to the first context, instead of overwriting the dataSource bean of the second context.</p> <p><strong>So, you need to put your custom data-source-context.xml under META-INF/spring/batch/override/ instead of META-INF/spring/batch/servlet/override/</strong></p> <p>Then it works and you won't even get the <code>Could not resolve placeholder 'batch.jdbc.driver' in string value [${batch.jdbc.driver}]</code> error.</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. VO
      singulars
      1. This table or related slice is empty.
    2. VO
      singulars
      1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload