title: Spring Boot Hikari can't find DriverClassName
body: <p>I have a spring boot project,It run just fine when I execute via eclipse <code>Project &gt; Run as &gt; spring boot app</code></p>
  
  <p>but when I build the project and execute it using <code>java -jar myproject.jar</code> or run it using <code>mvn spring-boot:run</code> it throw this error</p>
  
  <pre><code>Failed to bind properties under '' to com.zaxxer.hikari.HikariDataSource:
  
  Property: driverclassname
  Value: com.microsoft.sqlserver.jdbc.SQLServerDriver
  Origin: "driverClassName" from property source "source"
  Reason: Failed to load driver class com.microsoft.sqlserver.jdbc
  .SQLServerDriver in either of HikariConfig class loader or Thread context classloader
  
  Action:
  
  Update your application's configuration
  </code></pre>
  
  <p>my sql server connector dependency</p>
  
  <pre><code>&lt;dependency&gt;
          &lt;groupId&gt;com.microsoft.sqlserver&lt;/groupId&gt;
          &lt;artifactId&gt;mssql-jdbc&lt;/artifactId&gt;
          &lt;version&gt;6.4.0.jre8&lt;/version&gt;
          &lt;scope&gt;test&lt;/scope&gt;
  &lt;/dependency&gt;
  </code></pre>
  
  <p>and here my application.properties</p>
  
  <pre><code>spring.datasource.url=jdbc:sqlserver://mydb;databaseName=HTSdb
  spring.datasource.username=xxx
  spring.datasource.password=xxx
  spring.jpa.show-sql=true
  spring.jpa.hibernate.dialect=org.hibernate.dialect.SQLServer2012Dialect
  </code></pre>
  
  <p>it looks my app can't find the sqlserver driver but it is already in project classpath,any suggestion? thanks in advance</p>