title: Spring boot unable to determine jdbc url from datasouce (mysql)
body: <p>I am trying to load a MySQL database into a spring boot application but when I start the application I am getting those error messages:</p>
  
  <p><code>2018-07-17 13:46:31.426  WARN 2120 --- [  restartedMain] o.s.b.a.orm.jpa.DatabaseLookup           : Unable to determine jdbc url from datasource</code></p>
  
  <p><code>org.springframework.jdbc.support.MetaDataAccessException: Could not get Connection for extracting meta-data; nested exception is org.springframework.jdbc.CannotGetJdbcConnectionException: Failed to obtain JDBC Connection: 'url' not set</code></p>
  
  <p>Although I have set the url property in <code>application.properties</code> : <code>spring.datasource.url=jdbc:mysql://localhost:3306/mydatabase</code></p>
  
  <p>Can anyone help me figure this one out?</p>
  
  <p>Edit: Here is my Main class:</p>
  
  <pre><code>package com.randomsoft.checkoff;
  
  import org.springframework.boot.SpringApplication;
  import org.springframework.boot.autoconfigure.EnableAutoConfiguration;
  import org.springframework.boot.autoconfigure.SpringBootApplication;
  import org.springframework.boot.autoconfigure.jdbc.DataSourceAutoConfiguration;
  
  @SpringBootApplication
  @EnableAutoConfiguration(exclude = {DataSourceAutoConfiguration.class})
  public class CheckoffApplication {
  
  public static void main(String[] args) {
      SpringApplication.run(CheckoffApplication.class, args);
  }
  }
  </code></pre>