title: Cannot load driver class: com.mysql.jdbc.Driver Spring
body: <pre><code>spring.freemarker.cache:false
  
  
  spring.datasource.url=jdbc:mysql://localhost/mydb
  spring.datasource.username=user
  spring.datasource.password=pass
  spring.datasource.driver-class-name=com.mysql.jdbc.Driver
  </code></pre>
  
  <p>im getting this error even with the driver-class-name difined </p>
  
  <blockquote>
    <p>java.lang.IllegalStateException: Cannot load driver class:
    com.mysql.jdbc.Driver     at
    org.springframework.util.Assert.state(Assert.java:392)
    ~[spring-core-4.2.1.RELEASE.jar:4.2.1.RELEASE]    at
    org.springframework.boot.autoconfigure.jdbc.DataSourceProperties.getDriverClassName(DataSourceProperties.java:153)
    ~[spring-boot-autoconfigure-1.3.0.M5.jar:1.3.0.M5]    at
    org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration$NonEmbeddedConfiguration.dataSource(DataSourceAutoConfiguration.java:119)
    ~[spring-boot-autoconfigure-1.3.0.M5.jar:1.3.0.M5]    at
    sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    ~[na:1.8.0_60]    at
    sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    ~[na:1.8.0_60]    at ......</p>
  </blockquote>
  
  <p>and it goes on</p>