title: Cannot determine embedded database driver class for database type NONE using a postgres DB
body: <p><a href="https://i.stack.imgur.com/1CYZh.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/1CYZh.png" alt="enter image description here"></a>I am getting the error "Cannot determine embedded database driver class for database type NONE" when running the spring boot application in eclipse.
  I have search the web but could not find anything helpful. Please see the code below:-</p>
  
  <p><strong>Application.properties</strong></p>
  
  <pre><code>server.port=9093
  spring.datasource.url=jdbc:postgresql://localhost:5432/DB
  spring.datasource.username=postgres
  spring.datasource.password=Sunny@310591
  spring.jpa.hibernate.ddl-auto=create-drop
  spring.jpa.database-platform=org.hibernate.dialect.PostgreSQLDialect
  logging.level.org.springframework.web=INFO
  logging.level.com.ge.punemmf.qualityputaway=DEBUG
  logging.level.org.hibernate=ERROR
  logging.file=logs/spring-boot-logging.log
  spring.database.driverClassName=org.postgresql.Driver
  endpoints.sensitive=false
  </code></pre>
  
  <p><strong>Application.java</strong></p>
  
  <pre><code>@SpringBootApplication
  @EntityScan(basePackageClasses = { CenterOfExcellence.class, WorkOrder.class })
  public class WarehouseVisibilityApplication {
  
      public static void main(String[] args) {
          SpringApplication.run(WarehouseVisibilityApplication.class, args);
      }
  }
  </code></pre>
  
  <p><strong>CenterOfExcellence.java</strong></p>
  
  <pre><code>@Entity
  @Table(name = "CENTEROFEXCELLENCE")
  public class CenterOfExcellence {
      @Id
      @GeneratedValue(strategy = GenerationType.IDENTITY)
      private int id;
      private String name;
      @OneToMany
      @JoinTable(name = "CENTEROFEXCELLENCE_WORKORDER", 
      joinColumns = @JoinColumn(name = "center_of_excellence_id"), inverseJoinColumns = @JoinColumn(name = "workorder_id"))
      private Set&lt;WorkOrder&gt; workorders;
  
  }
  </code></pre>
  
  <p><strong>WorkOrder.java</strong></p>
  
  <pre><code>@Entity
  @Table(name = "WORKORDER")
  public class WorkOrder {
      @Id
      @GeneratedValue(strategy=GenerationType.IDENTITY)
      private int id;
      private String workOrder;
  }
  </code></pre>
  
  <p><strong>POM.xml</strong></p>
  
  <pre><code>&lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
      xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"&gt;
      &lt;modelVersion&gt;4.0.0&lt;/modelVersion&gt;
  
      &lt;groupId&gt;com.warehousevisibility&lt;/groupId&gt;
      &lt;artifactId&gt;WarehouseVisibility&lt;/artifactId&gt;
      &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
      &lt;packaging&gt;jar&lt;/packaging&gt;
  
      &lt;name&gt;WarehouseVisibility&lt;/name&gt;
      &lt;description&gt;Demo project for Spring Boot&lt;/description&gt;
  
      &lt;parent&gt;
          &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
          &lt;artifactId&gt;spring-boot-starter-parent&lt;/artifactId&gt;
          &lt;version&gt;1.5.6.RELEASE&lt;/version&gt;
          &lt;relativePath /&gt; &lt;!-- lookup parent from repository --&gt;
      &lt;/parent&gt;
  
      &lt;properties&gt;
          &lt;project.build.sourceEncoding&gt;UTF-8&lt;/project.build.sourceEncoding&gt;
          &lt;project.reporting.outputEncoding&gt;UTF-8&lt;/project.reporting.outputEncoding&gt;
          &lt;java.version&gt;1.8&lt;/java.version&gt;
      &lt;/properties&gt;
  
      &lt;dependencies&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-actuator&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-data-jpa&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-security&lt;/artifactId&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-web&lt;/artifactId&gt;
          &lt;/dependency&gt;
  
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
              &lt;artifactId&gt;spring-boot-starter-test&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.postgresql&lt;/groupId&gt;
              &lt;artifactId&gt;postgresql&lt;/artifactId&gt;
              &lt;scope&gt;runtime&lt;/scope&gt;
          &lt;/dependency&gt;
          &lt;dependency&gt;
              &lt;groupId&gt;org.springframework.security&lt;/groupId&gt;
              &lt;artifactId&gt;spring-security-test&lt;/artifactId&gt;
              &lt;scope&gt;test&lt;/scope&gt;
          &lt;/dependency&gt;
      &lt;/dependencies&gt;
  
      &lt;build&gt;
          &lt;plugins&gt;
              &lt;plugin&gt;
                  &lt;groupId&gt;org.springframework.boot&lt;/groupId&gt;
                  &lt;artifactId&gt;spring-boot-maven-plugin&lt;/artifactId&gt;
              &lt;/plugin&gt;
          &lt;/plugins&gt;
      &lt;/build&gt;
  
  
  &lt;/project&gt;
  </code></pre>
  
  <p><strong>ERROR :-</strong></p>
  
  <p>Description:</p>
  
  <p>Cannot determine embedded database driver class for database type NONE</p>
  
  <p>Action:</p>
  
  <p>If you want an embedded database please put a supported one on the classpath. If you have database settings to be loaded from a particular profile you may need to active it (no profiles are currently active).</p>