title: Cannot determine embedded database driver class for database type NONE while running jar
body: <p>As mentioned in the headline of question I am facing issue <code>Cannot determine embedded database driver class for database type NONE</code>. The application I have built is on spring boot and working fine when I run the code in intellij.</p>
  
  <p>I have followed several questions regarding the same exception and they suggested that I need to add <code>spring.datasource</code> properties in my application.properties file. I already have them and still facing the same issue. This issue occurs when I create jar file using artifacts of intellij and then run it by the following command. 
  <code>java - jar myJar.jar</code></p>
  
  <p>My application.properties file</p>
  
  <pre><code># ===============================
  # = DATA SOURCE
  # ===============================
  spring.datasource.url = jdbc:mysql://localhost:3306/db_wssmith?useSSL=false
  spring.datasource.username = 
  spring.datasource.password = 
  spring.datasource.driver-class-name=com.mysql.jdbc.Driver
  </code></pre>
  
  <p>Error Log while running jar</p>
  
  <p><code>ERROR org.springframework.boot.SpringApplication - Application startup failed
  org.springframework.beans.factory.UnsatisfiedDependencyException: Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaAutoConfiguration': Unsatisfied dependency expressed through constructor parameter 0; nested exception is org.springframework.beans.factory.BeanCreationException: Error creating bean with name 'dataSource' defined in class path resource [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Tomcat.class]: Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [org.apache.tomcat.jdbc.pool.DataSource]: Factory method 'dataSource' threw exception; nested exception is org.springframework.boot.autoconfigure.jdbc.DataSourceProperties$DataSourceBeanCreationException: Cannot determine embedded database driver class for database type NONE. 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).</code></p>