title: Failed to bind properties under '' to com.zaxxer.hikari.HikariDataSource: spring boot 2.4.1
body: <p>I get this output will running me spring app</p>
  <pre><code>***************************
  APPLICATION FAILED TO START
  ***************************
  
  Description:
  
  Failed to bind properties under '' to com.zaxxer.hikari.HikariDataSource:
  
      Property: driver-class-name
      Value: com.mysql.cj.jdbc.Driver
      Origin: &quot;driverClassName&quot; from property source &quot;source&quot;
      Reason: Failed to load driver class com.mysql.cj.jdbc.Driver in either of HikariConfig class loader or Thread context classloader
  
  Action:
  
  Update your application's configuration
  </code></pre>
  <p>my pom.xml look like this:</p>
  <pre><code>&lt;?xml version=&quot;1.0&quot; encoding=&quot;UTF-8&quot;?&gt;
  &lt;project xmlns=&quot;http://maven.apache.org/POM/4.0.0&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
  
  xsi:schemaLocation=&quot;http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd&quot;&gt;
  &lt;modelVersion&gt;4.0.0&lt;/modelVersion&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;2.4.1&lt;/version&gt;
      &lt;relativePath/&gt; &lt;!-- lookup parent from repository --&gt;
  &lt;/parent&gt;
  &lt;groupId&gt;com&lt;/groupId&gt;
  &lt;artifactId&gt;couponProject&lt;/artifactId&gt;
  &lt;version&gt;0.0.1-SNAPSHOT&lt;/version&gt;
  &lt;name&gt;couponProject-Spring &lt;/name&gt;
  &lt;description&gt;coupon project part 2 spring&lt;/description&gt;
  
  &lt;properties&gt;
      &lt;java.version&gt;11&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-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-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;
  </code></pre>
  
  <p>and my application.properties looking like this:</p>
  <pre><code>spring.datasource.url=jdbc:mysql://localhost:3306/couponproject?serverTimezone=Israel&amp;createDatabaseIfNotExist=true
  spring.datasource.username=root
  spring.datasource.password=1234
  spring.jpa.show-sql=true
  spring.jpa.hibernate.ddl-auto=update
  # spring.jpa.properties.hibernate.format_sql=true
  # spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL8Dialect
  </code></pre>
  <p>I'm new to spring so I don't really understand why I get this output
  I used spring initializer spring JPA
  I read similar questions but I couldn't quite understand the solution</p>