Spring boot creating configuration files when it should not
<p>I have excluded all DB related autoconfiguration in my spring boot application. But still it is trying to create JdbcTemplateConfiguration and failing not not finding any DataSources.</p>

<pre><code>@EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class,
JmsAutoConfiguration.class, MongoAutoConfiguration.class,
MongoDataAutoConfiguration.class,
DataSourceTransactionManagerAutoConfiguration.class,
HibernateJpaAutoConfiguration.class})
</code></pre>

<p>Stacktrace</p>

<pre><code>Error - org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'jdbcTemplate' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceAutoConfiguration$JdbcTemplateConfiguration.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.springframework.jdbc.core.JdbcTemplate]: Factory method 'jdbcTemplate' threw exception; nested exception is java.lang.IllegalArgumentException: Property 'dataSource' is required
</code></pre>