Spring.datasource.initialize=false not working
<p>I am working on spring boot and batch application. 
Due to batch, the application tries to connect to datasource
with <code>spring-boot:run</code>.
I want to stop that and tried <code>spring.datasource.initialize=false</code></p>

<p>Along with this also put <code>spring.batch.job.enabled=false</code></p>

<p>While the second one works fine, it seems the first one is ignored.</p>

<p>Could someone let me know if there is a way to stop db connection on startup?
Thanks in advance</p>