diff --git a/app/templates/src/main/java/package/config/_DatabaseConfiguration.java b/app/templates/src/main/java/package/config/_DatabaseConfiguration.java
index <HASH>..<HASH> 100644
--- a/app/templates/src/main/java/package/config/_DatabaseConfiguration.java
+++ b/app/templates/src/main/java/package/config/_DatabaseConfiguration.java
@@ -67,7 +67,7 @@ public class DatabaseConfiguration <% if (databaseType == 'sql') { %>implements 
     }
 
     @Bean(destroyMethod = "shutdown")
-    @ConditionalOnMissingClass(name = "<%=packageName%>.config.HerokuDatabaseConfiguration.class")
+    @ConditionalOnMissingClass(name = "<%=packageName%>.config.HerokuDatabaseConfiguration")
     public DataSource dataSource() {
         log.debug("Configuring Datasource");
         if (propertyResolver.getProperty("url") == null && propertyResolver.getProperty("databaseName") == null) {
Fixed #<I> removed '.class' from name