title: Error creating bean with name 'dataSource' [org/springframework/boot/autoconfigure/jdbc/DataSourceConfiguration$Hikari.class]
body: <p>i'm getting the following error when i try to debug a Spring boot with Gradle project in Eclipse</p>
  
  <pre><code>Error creating bean with name 'org.springframework.boot.autoconfigure.orm.jpa.HibernateJpaConfiguration': 
  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$Hikari.class]
  
  Bean instantiation via factory method failed; nested exception is org.springframework.beans.BeanInstantiationException: Failed to instantiate [com.zaxxer.hikari.HikariDataSource]: Factory method 'dataSource' threw exception; nested exception is java.lang.IllegalStateException: Cannot load driver class: com.mysql.jdbc.Driver
  
  </code></pre>
  
  <p>i've searched a lot, and most of the solutions came from something that is wrong in the application.properties file, but i can not figure what is wrong in mine</p>
  
  <pre><code>server.port=8080
  spring.datasource.driverClassName=com.mysql.jdbc.Driver
  spring.jpa.properties.hibernate.dialect=org.hibernate.dialect.MySQL5InnoDBDialect
  spring.jpa.show-sql=true
  spring.jpa.hibernate.ddl-auto=update
  spring.datasource.url=jdbc:mysql://localhost:3306/dices?useUnicode=true&amp;useJDBCCompliantTimezoneShift=true&amp;useLegacyDatetimeCode=false&amp;serverTimezone=UTC
  spring.datasource.username=root
  spring.datasource.password=root
  </code></pre>
  
  <p>Any suggestion?</p>
  
  <p>thanks</p>